Skip to content

Commit

Permalink
CleanJSON.py: print help message on missing args
Browse files Browse the repository at this point in the history
  • Loading branch information
medicalwei committed Jun 25, 2024
1 parent 040bc0e commit 3719534
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CleanJSON.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ def save(self):
)

args = parser.parse_args()
if args.lang is None or args.en is None or args.out is None:
parser.print_help()
exit(1)
N = LocaleCleaner(args.en, args.lang, args.out, args.add_missing_keys)
N.run()
print("Cleaned!")

0 comments on commit 3719534

Please sign in to comment.