diff --git a/python/afdko/invoker.py b/python/afdko/invoker.py index a14e4649b..44038b458 100644 --- a/python/afdko/invoker.py +++ b/python/afdko/invoker.py @@ -8,7 +8,6 @@ import sys from typing import NoReturn - # Complete command registry with abbreviations # Format: name -> (module:function, description, category) # Categories: 'primary', 'secondary', 'plot' @@ -225,11 +224,12 @@ def main() -> NoReturn: sys.exit(0) # Help requested - if subcmd in ('-h', '--help', 'help'): - # Check for command name after -h + if subcmd in ('-h', '--help', 'help', '-u'): + # Check for command name after -h/-u if len(sys.argv) > 2: arg = sys.argv[2] # afdko -h -> afdko -h + # afdko -u -> afdko -h # Check if it's a valid command if arg in ALL_COMMANDS: sys.argv = ['afdko', arg, '-h'] diff --git a/tests/invoker_test.py b/tests/invoker_test.py index 5a7d83d16..cb51ebb7d 100644 --- a/tests/invoker_test.py +++ b/tests/invoker_test.py @@ -10,7 +10,6 @@ import pytest import subprocess -import sys class TestHelpSystem: