mirror of
https://github.com/clearlinux/autospec.git
synced 2026-09-06 05:41:50 +00:00
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:
+1
-1
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user