commandline icon indicating copy to clipboard operation
commandline copied to clipboard

The best C# command line parser that brings standardized *nix getopt style, for .NET. Includes F# support

Results 191 commandline issues
Sort by recently updated
recently updated
newest added

**Issue** When using a boolean switch after a verb, I cannot set it to false **Example:** app.exe install --feature=false **Options class** ``` [Verb("install", HelpText = "Install something")] class Options {...

This is the minimal AutoText() function that can generate help text only from the command line parameters class. Example: ``` HelpText helpText = HelpText.AutoBuild(); Console.WriteLine(helpText.ToString()); ``` I find it very...

E.g. "--KEEP_ALIVE_OPTION=1". This treats by the parser as no value: _Option 'keep_alive_option" has no value. Required option 'keep_alive_option' is missing._ ``` public class KeepAliveOptions { [Option(Required = true)] public string...

Hello, Great project ! Found and implemented localization with the LocalizableSentenceBuilder class as explained in : https://github.com/commandlineparser/commandline/wiki/Help-Localization --- Optionally, To localize the keywords "Required,Default" and the error messages, add the...

Did this ``` static async Task Main( string[] args ) { _logger.Info(CommandLine.Text.HeadingInfo.Default); var parser = new Parser(p => { p.AutoVersion = false; p.CaseInsensitiveEnumValues = true; }); var parserResult = parser.ParseArguments(args);...

question

Is there any interest in allowing the `ParseArguments` method to accept a single scalar argument? My use case is a console app that, if no arguments are supplied, goes into...

This was seen on version 2.8.0 targeting .NET Core 3.1 / 5. Minimum code sample: ``` void Main() { var parser = new Parser(); var result = parser.ParseArguments(new[] { "copy",...

What is the best way to support a default verb? Currently it seems to be no way to define some verbs and one default verb without a name. call `tool.exe`...

question

I want to design an api with a bool-like option which can optionally contains a name. Below are my commands I wanted to work with: ``` shell // 1. Call...

Just found out that a parameter like `-1` does not work. Is it intentional? :)