From 18dde8200c349e2780f653302d5b034d6fd1db82 Mon Sep 17 00:00:00 2001 From: nahid18 Date: Sat, 2 Sep 2023 02:42:16 +0600 Subject: [PATCH] feat: fix no input error --- src/isocomp/__main__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/isocomp/__main__.py b/src/isocomp/__main__.py index 7378fd7..5dd0a67 100644 --- a/src/isocomp/__main__.py +++ b/src/isocomp/__main__.py @@ -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)