ansible-community / antsibull-changelog

Changelog generator for ansible, ansible-base, and collections.
https://ansible.readthedocs.io/projects/antsibull-changelog/
GNU General Public License v3.0
36 stars 28 forks source link

Specifying an output file and a specific output format on the CLI is broken when multiple output formats are configured #149

Closed Callum027 closed 7 months ago

Callum027 commented 7 months ago

I'm using the latest version and have both Markdown and RST configured in my changelog/config.yml. I get the following error when specifying both --output and --output-format to generate release notes for a specific version to a custom file:

callum@callum-laptop:~/dev/github.com/Callum027/ansible-collection-palworld-dedicated-server$ antsibull-changelog generate 2.1.0 --only-latest --output RELEASENOTES.md --output-format md
When an explicit output path is specified and more than one output format is configured, you need to explicitly specify an output format

Looking at the relevant code, it appears to not take into account the --output-format argument value at all.

felixfontein commented 7 months ago

Oops! Thanks for reportig this!

felixfontein commented 7 months ago

151 fixes this.