From 95ef1e4b5a2599584ba5b5aa8b4bb2ea41ad9eea Mon Sep 17 00:00:00 2001 From: Archana Date: Tue, 8 Dec 2015 22:59:26 -0800 Subject: [PATCH] Remove nargs=1 in add_argument call for config file This fixes a bug while passing config file on the command line. Passing nargs=1 produces a list of one item rather than a string. This then gets assigned to config_file variable which expects a string. --- autospec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autospec.py b/autospec.py index 04de85b..c139361 100644 --- a/autospec.py +++ b/autospec.py @@ -140,7 +140,7 @@ def main(): parser.add_argument("-b", "--skip-bump", dest="bump", action="store_false", default=True, help="Don't bump release number") - parser.add_argument("-c", "--config", nargs=1, dest="config", + parser.add_argument("-c", "--config", dest="config", action="store", default="common/autospec.conf", help="Set configuration file to use")