Currently, the code assigns the spec file to the target if none is provided. However, this is not possible via the CLI as the target is mandatory.
target
Issue tagged with: F35 Change
PR here: https://pagure.io/fedora-infra/rpmautospec/pull-request/196
We changed that on purpose in the CLI, to make overwriting the original spec file hard (as a fix for #121). You can still do it if you absolutely want to, but have to specify it a second time. The alternative would have been to make target optional (like your PR did) but require a --force-overwrite option or similar, but that would have been too much effort. :wink:
--force-overwrite
I'll close the PR now.
Metadata Update from @nphilipp: - Issue close_status updated to: Invalid - Issue status updated to: Closed (was: Open)
Metadata Update from @nphilipp: - Issue untagged with: F35 Change