Print help when invoked with no arguments

This commit is contained in:
Gilles Peskine 2019-07-28 00:36:53 +02:00
parent bf359c7fc4
commit 90b30b618b

View file

@ -374,7 +374,10 @@ if __name__ == '__main__':
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: