Skip to content

Commit

Permalink
feat: fix no input error
Browse files Browse the repository at this point in the history
  • Loading branch information
nahid18 committed Sep 1, 2023
1 parent 15b3c95 commit 18dde82
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 18dde82

Please sign in to comment.