commandline
commandline copied to clipboard
Terse syntax C# command line parser for .NET with F# support
Sometime it is usefull to have not only single char short option like` [Option('d', "download-file")]` but something like `[Option('gf', "graph-file")]`. This is not a common approach, but might be needed...
I am hitting an issue where passing the same string to a Value and an Option results in incorrect parsing. I'm happy to see it's already been fixed in commit...
For example, I need to intercept the text and not send it to the console, but elsewhere.
[ReSharper](https://www.jetbrains.com/resharper/) has unused methods/properties highlighting to understand, what code can be removed safely. CommandLine library uses reflection for code invokation, so ReSharper is unable to lookup the calls. See below...
Right now it's impossible to raise my own parser errors because all classes relating to the error system are `sealed` with `internal` constructors. This snippet from `HelpTextTests` is completely inaccessible:...
Could someone provide simple example how I could use ParseArguments() with factory? I've failed to figure out that :( May be parser can't help in that case?
The following options class: ``` C# public class CommandLineOptions { [Value(0, Required = true)] public string InputFileName { get; set; } [Option('o', "output")] public string OutputFileName { get; set; }...
For example, I have a customized parameter defined like following: `public class MyParameters` ` {` ` public MyParameters(string init)` ` {` ` throw new InvalidOperationException("Some error message");` ` }` `...
Is there any way to implement an option (let's say with name "option1") that it works like: 1. --option1 value1, means to set it to "value1" 2. --option1, means it's...
I am using CommandLineParser 2.1.1-beta. Suppose you have two immutable options classes, one of which defines some required values: ```csharp [Verb("create", HelpText = "Create a new migration.")] public class CreateMigrationOptions...