diff --git a/rust2rpm/__main__.py b/rust2rpm/__main__.py index a011217..2cffd40 100644 --- a/rust2rpm/__main__.py +++ b/rust2rpm/__main__.py @@ -448,7 +448,7 @@ def main(): rpmautospec = args.rpmautospec if args.rpmautospec is None: - rpmautospec = detect_rpmautospec(default_target, spec_file) + rpmautospec = detect_rpmautospec(args.target, spec_file) kwargs["rpmautospec"] = rpmautospec kwargs["relative_license_paths"] = args.relative_license_paths