dotnet / dotnet/command-line-api
System.CommandLine arguments without options
- Vorherrschende Sprache
- C#
- Sterne
- 3.7k
- Forks
- 428
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hello everyone,
I am new to .Net coming from a Unix background and I am developing a dotnet command line application that needs a couple of options, followed by a list of one or more input files, i.e:
` mycmd —dpi 72 —grayscale input_file1.jpg input_file2.png`
I have poured over the documentation and searched all over the web and have only been able to find examples of arguments that are part of an option, as in the —dpi 72 above. If someone could provide a simple example of how to define a standalone argument with an arity of OneOrMore or provide a link to some relevant documentation I would greatly appreciate it.
Best Regards,
Daryl
Beitragsleitfaden
Rechercherichtung
Überprüfe die bestehende Dokumentation und die Beispiele für Befehlszeilenargumente, beginnend damit, wie Optionen und ihre Argumente derzeit beschrieben werden. Füge ein einfaches Beispiel hinzu, das ein eigenständiges Argument mit der OneOrMore-Arity nach Optionen abdeckt, und stelle sicher, dass die Dokumentation das in der Issue beschriebene Eingabedatei-Szenario beantwortet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- cli
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 25/100