Skip to content

Commit

Permalink
add check for extra arguments but no synthetic input class to pass th…
Browse files Browse the repository at this point in the history
…em too. warn user and quit
  • Loading branch information
tobidelbruck committed Oct 6, 2022
1 parent 3e3f5a3 commit f7ae803
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions v2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ def main():
logger.error(f'{synthetic_input} method incorrect?: {e}')
v2e_quit(1)

# check to make sure there are no other arguments that might be bogus misspelled arguments in case
# we don't have synthetic input class to pass these to
if synthetic_input_instance is None and not other_args is None:
logger.error(f'There is no synthetic input class specified but there are extra arguments {other_args} that are probably incorrect')
v2e_quit(1)



Expand Down

0 comments on commit f7ae803

Please sign in to comment.