Skip to content

Commit

Permalink
Add default help message for gs CLI when no arguments are provided
Browse files Browse the repository at this point in the history
Added `parser.print_help()` to ensure users receive guidance on available commands instead of the CLI failing silently.
  • Loading branch information
AmbarishGK authored Jan 5, 2025
1 parent bc2e122 commit 6b30c0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions genesis/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down

0 comments on commit 6b30c0f

Please sign in to comment.