Skip to content

How do you customize the --version flag? #1672

Open
@1ma

Description

@1ma

The documentation mentions that System.CommandLine supports the --version flag out of the box but it doesn't show how to override its default value, and I cannot find any method on the RootCommand class to set it.

Side suggestion 1: Change the default value from 1.0.0 to 0.1.0. When an app follows semantic versioning its first release is usually very far from 1.0.

Side suggestion 2: Enable GitHub Discussions on the repo so that the community can ask obnoxious newbie questions like this one there and declutter the Issues section.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions