bye bye interactive help
This commit is contained in:
4
app.py
4
app.py
@ -19,6 +19,10 @@ def main(argv=sys.argv[1:]):
|
|||||||
app = TraefikHelper()
|
app = TraefikHelper()
|
||||||
app.command_manager.add_command('add', addService.AddService)
|
app.command_manager.add_command('add', addService.AddService)
|
||||||
app.command_manager.add_command('delete', deleteService.DeleteService)
|
app.command_manager.add_command('delete', deleteService.DeleteService)
|
||||||
|
|
||||||
|
if len(argv) == 0: # Disable the stupid interactive help
|
||||||
|
app.run(['--help'])
|
||||||
|
|
||||||
return app.run(argv)
|
return app.run(argv)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Reference in New Issue
Block a user