Use tuple in place of single-element list

This commit is contained in:
ZyX 2014-02-16 16:44:01 +04:00
parent cf4c1e05ad
commit 3aec68449f
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ def get_argparser(parser=None, *args, **kwargs):
p.add_argument('-c', '--config', metavar='KEY.KEY=VALUE', action='append')
p.add_argument('-t', '--theme_option', metavar='THEME.KEY.KEY=VALUE', action='append')
p.add_argument('-p', '--config_path', metavar='PATH')
p.add_argument('-R', '--renderer_arg', metavar='KEY="VAL"', type=lambda a: dict([parsedotval(a)]))
p.add_argument('-R', '--renderer_arg', metavar='KEY="VAL"', type=lambda a: dict((parsedotval(a),)))
return p