Mohamed Hassan

Results 60 comments of Mohamed Hassan

@Ducatel >I'm trying to parse a command line (imposed, no way to change it) What is the OS you are using this commandline options? Do you pass these args to...

@rmunn We can plan to extend the library to support other standard commandline options beside GNU standard like: - Using single dash only as Posix standard/ Powershell and [Unity Engine](https://docs.unity3d.com/Manual/CommandLineArguments.html)....

@Ducatel >I'm acting as a middleware, I received some commands and I organize call to external software/API. As you are acting as a middleware, you have a control to get...

Switches can be merged together: -tv parsed as -t -v Using the following Option class ```csharp class Options { [Option('v')] public string Verbose { get; set; } } ``` The...

Verbose is defined as **string** not bool (so it's a **Scalar** option not a boolean **Switch** ) to accept string values as described above. Any scalar option should have a...

In that case, verbose will be uint : v1 or v2 or v3 and no way to map against -v or -vv or -vvv Just, a trick, if you want...

>I'm still not getting it - You need not to use the separate doubledash `--` - The option Verbosity is VerbosityEnum not uint ```charp [Option( 'v', HelpText = "Verbosity level:...

Thanks @ericnewton76 I appreciate your support to this change and happy to cooperate with you. V2.4.3 is valuable to support the new era netcoreapp2.x and my PR for support net45,net40...

starting v2.7+, there is a new simplified overload method: ``` private static int DisplayHelp(ParserResult result, IEnumerable errs) { var helpText = CommandLine.Text.HelpText.AutoBuild(result, h => { h.AdditionalNewLineAfterOption = false; h.AddNewLineBetweenHelpSections =...

@DkAngelito Just modify args as: ```cs new string[] { "--help" } // --help, show help for non verb optons ,new string[] { "clone", "--help" } // clone --help , show...