Skip to content

Conflicting --version option when using default command #510

@SmileyChris

Description

@SmileyChris

Towncrier's build command is the default command, but it uses a custom --version option that collides with the base cli --version option that simply returns the towncrier version number.

> towncrier --version x.y --draft
towncrier, version 22.12.1.dev0
> towncrier build --version x.y --draft
[renders draft newsfile]

I don't really know if there's an easy out. Maybe just don't use any default command (since there's discussion about not having that as a separate dependency anyway: #506)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions