code: def do_alternate(self, args):
          
          func = getattr(args, 'func', None)
          if func is not None:
              # Call whatever sub-command function was selected
              func(self, args)
          else:
              # No sub-command was provided, so call help
              self.do_help('alternate')
docs: Alternate command help