Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Callum027 opened this issue Feb 14, 2024 · 2 comments · Fixed by #151
Labels
bug Something isn't working

Comments

@Callum027
Copy link

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
Copy link
Collaborator

Oops! Thanks for reportig this!

@felixfontein felixfontein added the bug Something isn't working label Feb 14, 2024
@felixfontein
Copy link
Collaborator

#151 fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants