python from cliff.app import App from cliff.command import Command class MyCommand(Command): def take_action(self, parsed_args): pass class MyApp(App): def __init__(self): super(MyApp, self).__init__( description='My Command Line Application', version='1.0', command_manager=CommandManager('myapp.commands'), ) if __name__ == '__main__': myapp = MyApp() return_code = myapp.run(sys.argv[1:]) sys.exit(return_code)


上一篇:
下一篇:
切换中文