commit | 90b30b618b8c8ae56f9d5a9ee2e219b1b359f4e8 | [log] [tgz] |
---|---|---|
author | Gilles Peskine <Gilles.Peskine@arm.com> | Sun Jul 28 00:36:53 2019 +0200 |
committer | Gilles Peskine <Gilles.Peskine@arm.com> | Fri Sep 13 11:04:23 2019 +0200 |
tree | 0f3bb5ce023301f02df23bf223689a451e5b28d6 | |
parent | bf359c7fc47a42fe3a95263e3d7f0fe006426b93 [diff] [blame] |
Print help when invoked with no arguments
diff --git a/scripts/config.py b/scripts/config.py index 9fe2e51..cf347e9 100755 --- a/scripts/config.py +++ b/scripts/config.py
@@ -374,7 +374,10 @@ args = parser.parse_args() config = ConfigFile(args.file) - if args.command == 'get': + if args.command is None: + parser.print_help() + return 1 + elif args.command == 'get': if args.symbol in config: value = config[args.symbol] if value: