commandlineparser / commandlineparser/commandline

Configurable conventions

Offen
#402 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C#
Sterne
4.8k
Forks
478
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

This is a feature request / question.

I'm trying to implement the parser for an unity application. Sadly unity uses different conventions for command line arguments: https://docs.unity3d.com/Manual/CommandLineArguments.html

Is there any way I can configure the parser to use single dashes for the full name (and single dashes for spaces)?

Currently it's not possible for me to use both concurrently:

```ps
& '.\My UnityApp.exe' --configpath="config.json" -logFile log.txt -screen-fullscreen
1 -screen-height 1200 -screen-width 1920
```

Breaks because `RepeatedOptionError` at `configpath`. I understand why this happens but it's blocking me currently.

Does this require a change on the source code of the parser or am I missing something?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.