Skip to content

Commit

Permalink
some changes dealling with invalid arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
AdenKoperczak committed Dec 12, 2024
1 parent f886fb2 commit 4224cb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion grib2pf.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ def format_file(filename):
p.add_argument("--json", type = str,
help = """JSON representing your settings""")

print(sys.argv)

if len(sys.argv) == 1:
if os.path.exists(defaultSettingsPath2):
args = JsoncParser.parse_file(defaultSettingsPath2)
Expand All @@ -242,5 +244,5 @@ def format_file(filename):
try:
main()
except Exception as e:
print(traceback.from_exc(e))
traceback.print_exception(exc(e)
input("Press enter to exit")

0 comments on commit 4224cb5

Please sign in to comment.