commandlineparser / commandlineparser/commandline

How to generate help text at runtime for logging purposes

Offen
#405 1 Kommentar 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

I'm trying to find a way to generate the help text (that would be displayed if the user asked for it) at runtime when there is a parsing error. We want to log this help text for console apps that run unattended during the night and where for some reason incorrect args were setup for the job.

I can see stuff like CommandLine.Texy.HelpText.RenderUsage and so on but I have no idea what these do and they don't seem to do what we need.

Many thnaks.

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.