dotnet / dotnet/command-line-api
How do you customize the --version flag?
- Lingua principale
- C#
- Stelle
- 3.7k
- Fork
- 428
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
The documentation [mentions](https://github.com/dotnet/command-line-api/blob/main/docs/Features-overview.md#version-option) 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](https://github.blog/2021-08-17-github-discussions-out-of-beta/) on the repo so that the community can ask ~obnoxious~ newbie questions like this one there and declutter the Issues section.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dalla sezione relativa all'opzione della versione in docs/Features-overview.md, quindi esamina l'entry point RootCommand e il comportamento esistente di --version. Documenta il modo supportato per personalizzare il valore, oppure chiarisci che la personalizzazione non è disponibile; includi dettagli sufficienti affinché gli utenti possano riprodurre il risultato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- cli, documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100