Skip to content
Snippets Groups Projects
Commit e4bf671d authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

mkexp: changed 'key' option of getexp to be repeatable

parent 55022041
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,11 @@ Release Changes
Release 1.0.4
=============
Global
------
* Changed 'key' option of getexp to be repeatable
Configuration
-------------
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
No preview for this file type
......@@ -63,8 +63,9 @@ command_line.add_argument('--readme', '-R', action='store_true',
command_line.add_argument('--verbose', '-v', action='count',
help='show all top-level settings, '
'or all settings if used twice')
command_line.add_argument('--key', '-k',
help='print value of given configuration key')
command_line.add_argument('--key', '-k', action='append',
help='only print value of given configuration key, '
'may be used more than once')
args = command_line.parse_args()
......@@ -102,7 +103,8 @@ if args.readme:
print(config['EXP_DESCRIPTION'])
elif args.key:
try:
print(get_value(config, args.key));
for key in args.key:
print(get_value(config, key));
except KeyError as error:
die("invalid config name '{0}'".format(error.message))
elif args.verbose >= 2:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment