Skip to content

Commit 2c09509

Browse files
committed
Fix arg parsing if no config is provided
1 parent 4bcf3dd commit 2c09509

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/args.py

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
def parse_args(parser: ArgumentParser):
77
args = sys.argv[1:]
8+
if args.count('--config') <= 0:
9+
return parser.parse_args()
10+
811
conf = args.index('--config')
912
if conf >= 0 and conf + 1 < len(args):
1013
config_file = args[conf + 1]

0 commit comments

Comments
 (0)