code: def docopt_cmd(func):
      
      def helper_fn(self, arg):
          '''helper function for docopt'''
          try:
              opt = docopt(helper_fn.__doc__, arg)
          except DocoptExit as exception:
              # The DocoptExit is thrown when the args do not match.
              # We print a message to the user and the usage block.
              print 'Invalid Command!'
              print exception
              return
          except SystemExit:
              # The SystemExit exception prints the usage for --help
              # We do not need to do the print here.
              return
          return func(self, opt)
      helper_fn.__name__ = func.__name__
      helper_fn.__doc__ = func.__doc__
      helper_fn.__dict__.update(func.__dict__)
      return helper_fn
docs: This decorator is used to simplify the try/except block and pass the result
      of the docopt parsing to the called action.