Display help even if input is needed

This commit is contained in:
Kload 2013-06-01 00:13:24 +02:00
parent fee3c7c47c
commit 50d0261b52
2 changed files with 20 additions and 18 deletions

View file

@ -105,6 +105,8 @@ def parse_dict(action_map):
if 'ask' in arg_params: if 'ask' in arg_params:
require_input = True require_input = True
if '-h' in sys.argv or '--help' in sys.argv:
require_input = False
if (category != sys.argv[1]) or (action != sys.argv[2]): if (category != sys.argv[1]) or (action != sys.argv[2]):
require_input = False require_input = False
for name in arg_names: for name in arg_names: