mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-19 18:39:55 +00:00
Print help when invoked with no arguments
This commit is contained in:
parent
bf359c7fc4
commit
90b30b618b
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user