commandline icon indicating copy to clipboard operation
commandline copied to clipboard

Terse syntax C# command line parser for .NET with F# support

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

So, I'm fond of IoC builders (Autofac, Ninject, etc). We are building up a command line that has pluggable verbs. In most cases, the IoC containers return actual instances of...

Hi, I may be doing this wrong, but it may also be a bug. When I create a verb the Value with index 0 that I get back is the...

I'm using the `Value` attribute, and specifying some parameters like this ... ```cs [Verb("fetch", HelpText="Download a zip of scraped documents from each agent.")] public class FetchScrapedOptions { #region Properties [Value(0,...

``` [Option('a', Required = false)] public int a { get; set; } [Option('b', Required = false)] public int b { get; set; } ``` But either a or b should...

When outputting HelpText, the following code will correctly list valid values for enum type options. However, if the option is a nullable enum type, then it will not list the...

` static int Main(string[] args) { var result = CommandLine.Parser.Default.ParseArguments(args); ``` var exitCode = result.MapResult( options => { return ScheduledTasks.ExecuteTask(options.Task); }, errors => { var helpText = HelpText.AutoBuild(result); helpText.AddEnumValuesToHelpText =...

I am using: #region Assembly commandline, Version=2.0.275.0, Culture=neutral, PublicKeyToken=de6f01bd326f8c32 // C:\Users\Darrell\.nuget\packages\commandlineparser\2.1.1-beta\lib\netstandard1.5\CommandLine.dll #endregion This won't compile: ``` var parsed = CommandLine.Parser.Default.ParseArguments(args); ``` There is no such overload that takes multiple types.....

I would like to be able to parse a large number of verb commands within an assembly and execute a default method in a single line of code example: ```Parser.Default.ParseArguments(args,...

Define option: ``` [Option('e', "engineering", SetName = "console", Required = false, HelpText = "Flag whether the build is engineering build")] public bool Engineering { get; set; } ``` When passing...

output of generated usage section need to be adjusted. see PR #376 - [x] output in C# is missing spaces (VB.NET has it) - see headfile.bin --> head file.bin -...

bug