From 44ed6c8b4d74c097f067ee56c1c0f6ae5ccce514 Mon Sep 17 00:00:00 2001 From: Alexis Gavoty Date: Sun, 2 Jun 2013 21:34:11 +0300 Subject: [PATCH] Sanitize dict key --- parse_args | 1 + 1 file changed, 1 insertion(+) diff --git a/parse_args b/parse_args index cfc4835a..4d707585 100755 --- a/parse_args +++ b/parse_args @@ -139,6 +139,7 @@ def parse_dict(action_map): if 'dest' in arg_params: name = arg_params['dest'] elif arg_fullname: name = arg_fullname[2:] else: name = arg_name + name = name.replace('-', '_') patterns[name] = arg_params['pattern'] del arg_params['pattern']