diff --git a/rust2rpm/__main__.py b/rust2rpm/__main__.py index 82233d6..a6e6e80 100644 --- a/rust2rpm/__main__.py +++ b/rust2rpm/__main__.py @@ -384,7 +384,7 @@ def main(): default=None, help="Use autorelease and autochangelog features") parser.add_argument("--no-rpmautospec", action="store_false", - default=None, + dest="rpmautospec", help="Do not use rpmautospec") parser.add_argument("--relative-license-paths", action="store_true", help="Put all license files in main license directory") @@ -468,7 +468,7 @@ def main(): kwargs["auto_changelog_entry"] = not args.no_auto_changelog_entry rpmautospec = args.rpmautospec - if args.rpmautospec is None: + if rpmautospec is None: rpmautospec = detect_rpmautospec(args.target, spec_file) kwargs["rpmautospec"] = rpmautospec