commandlineparser / commandlineparser/commandline

OptionsBase class for all cmd line projects in a solution

Aperta
#753 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
4.8k
Fork
478
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The old version allowed us to create an OptionsBase class. Most of it was easily migrated to the new lib API, but I'm not sure how to tackle the Usage/Help option because the ApplicationAlias property of the Usage attribute cannot be dynamically set, and I see no way to replace this snippet from the OptionsBase:

```
string fileName = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;
help.AddPreOptionsLine(string.Format("Usage: {0}.exe [/i c:\\aossrvtest.ini] [/d 10]", fileName));
help.AddPreOptionsLine(" ");
help.AddPreOptionsLine(" ");
help.AddPreOptionsLine("Arguments:");
help.AddOptions(this);
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.