code: def option(*args, **kwargs):
      
  
      #XXX Is there a possible optimization for many options to not have a
      #    large stack depth here?
      def decorate(f):
          if not hasattr(f, "optparser"):
              f.optparser = SubCmdOptionParser()
          f.optparser.add_option(*args, **kwargs)
          return f
  
      return decorate
docs: Decorator to add an option to the optparser argument of a Cmdln
      subcommand.
  
      Example:
          class MyShell(cmdln.Cmdln):
              @cmdln.option("-f", "--force", help="force removal")
              def do_remove(self, subcmd, opts, *args):
                  #...