Skip to content

Commit

Permalink
Merge pull request #56 from nahid18/hotfix/fix-no-input-error
Browse files Browse the repository at this point in the history
feat: fix no input error
  • Loading branch information
cmatKhan committed Sep 1, 2023
2 parents 15b3c95 + 18dde82 commit 406946b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/isocomp/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ def main(args=None) -> None:

args = arg_parser.parse_args(args)

if "func" not in args:
arg_parser.print_help()
sys.exit(0)

configure_logging(args.log_level)
# log the cmd line arguments at the debug level
logger.debug(sys.argv)
Expand Down

0 comments on commit 406946b

Please sign in to comment.