Skip to content

Commit

Permalink
Print Help message when no arguments are specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythicaeda committed Jan 23, 2025
1 parent e97d5e7 commit df43408
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deployment/aerie_db_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,4 +509,7 @@ def createArgsParser() -> argparse.ArgumentParser:
if __name__ == "__main__":
# Generate arguments and kick off correct subfunction
arguments = createArgsParser().parse_args()
arguments.func(arguments)
try:
arguments.func(arguments)
except AttributeError:
createArgsParser().print_help()

0 comments on commit df43408

Please sign in to comment.