From 9c33fa21fce5311f27e4c6d6c806121f2a15e433 Mon Sep 17 00:00:00 2001 From: Ben Cumming Date: Fri, 16 Feb 2024 09:23:40 +0100 Subject: [PATCH] print proper help message if no args passed --- uenv-image => img | 3 +++ 1 file changed, 3 insertions(+) rename uenv-image => img (99%) diff --git a/uenv-image b/img similarity index 99% rename from uenv-image rename to img index 771db3d..f2e3d9c 100755 --- a/uenv-image +++ b/img @@ -412,6 +412,9 @@ def uenv_record_path(record): if __name__ == "__main__": parser = make_argparser() args = parser.parse_args() + if args.command is None: + parser.print_help() + sys.exit() global colored_output colored_output = use_colored_output(args.no_color)