Commit cfc9b673 authored by Seblu's avatar Seblu
Browse files

Fix call without any argument doesn't display usage

This is not the same behaviour of argparse than in 2.7 python. I guess
there is a bug.
parent 87666b5e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -64,7 +64,11 @@ def parse_argv():
                        "cache: list packages in cache. "
                        "modes: list comparaison modes. ")
    p_list.set_defaults(func=command_list)
    return p_main.parse_args()
    namespace = p_main.parse_args()
    # Ensure subparser was choosen
    if "func" not in namespace:
        p_main.error("missing argument")
    return namespace

def command_check(args, vctrl):
    '''Handle check command call'''