diff --git a/heracles/cli.py b/heracles/cli.py index a884517..68bff8d 100644 --- a/heracles/cli.py +++ b/heracles/cli.py @@ -734,7 +734,6 @@ def add_command(func): cmd_parser.add_argument( "-c", "--config", - default="heracles.cfg", help="configuration file (can be repeated)", metavar="", action="append", @@ -861,6 +860,10 @@ def add_command(func): main_parser.print_help() return 1 + # fix default config + if not args.files: + args.files = ["heracles.cfg"] + # get keyword args kwargs = vars(args) cmd = kwargs.pop("cmd")