From 4cbd9dfa0a28db6ae2b7a89daaf3ddccd25bccce Mon Sep 17 00:00:00 2001 From: mhucka Date: Fri, 8 Jul 2022 18:09:20 -0700 Subject: [PATCH] Fix #5702 If no argument is given to modules.py, pretend --help was given. --- dev_tools/modules.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dev_tools/modules.py b/dev_tools/modules.py index 9fd5ecdbc25..2618b8921bb 100644 --- a/dev_tools/modules.py +++ b/dev_tools/modules.py @@ -303,6 +303,9 @@ def parse(args): def main(argv: List[str]): + if argv == []: + # If no arguments are given, print the help/usage info. + argv = ['--help'] args = parse(argv) # args.func is where we store the function to be called for a given subparser # e.g. it is list_modules for the `list` subcommand