From 6b30c0f109ab92cad14629e534fe989775aca8ec Mon Sep 17 00:00:00 2001 From: Ambarish G K Date: Sun, 5 Jan 2025 15:13:43 -0800 Subject: [PATCH] Add default help message for gs CLI when no arguments are provided Added `parser.print_help()` to ensure users receive guidance on available commands instead of the CLI failing silently. --- genesis/_main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/genesis/_main.py b/genesis/_main.py index e5cd2f7d..c0367395 100644 --- a/genesis/_main.py +++ b/genesis/_main.py @@ -252,6 +252,8 @@ def main(): view(args.filename, args.collision, args.rotate, args.scale) elif args.command == "animate": animate(args.filename_pattern, args.fps) + elif args.command == None: + parser.print_help() if __name__ == "__main__":