The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit 6c48cb0f authored by Romain Bignon's avatar Romain Bignon

alias 'woob update' on 'woob config update'

parent 80dec659
......@@ -51,7 +51,7 @@ def run_app(cls, app, args):
def print_list(cls, app_list):
print('usage: woob [--version] <command> [<args>]')
print()
print('Use one of this command:')
print('Use one of this commands:')
for app in app_list:
app_class = cls.load_app(app)
print(' %-15s %s' % (app_class.APPNAME, app_class.SHORT_DESCRIPTION))
......@@ -75,6 +75,9 @@ def run(cls):
if sys.argv[1] == '--version':
return cls.print_version()
if sys.argv[1] == 'update':
sys.argv.insert(1, 'config')
if sys.argv[1] not in app_list:
print("woob: '{0}' is not a woob command. See 'woob --help'.".format(sys.argv[1]))
words = difflib.get_close_matches(sys.argv[1], app_list)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment