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.
This commit is contained in:
Archana
2015-12-08 23:02:29 -08:00
parent 9c103db7cb
commit 95ef1e4b5a
+1 -1
View File
@@ -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")