commandline
commandline copied to clipboard
The best C# command line parser that brings standardized *nix getopt style, for .NET. Includes F# support
While implementing #678, I discovered a bug in how CommandLineParser handles sequences. Currently, the following test will fail: ```csharp [Fact] public void Default_parser_stops_at_sequence_max() { // Arrange var sut = Parser.Default;...
I've declared `Options` which will be used for parsing command line. ```csharp public class Options { // ... [Option('o', "operation", HelpText = "")] [TypeConverter(typeof(OperationConverter))] public Operation Operation { get; set;...
**Describe the bug** JetBrains Rider signal the 2.9.1 version as vulnerable. It doesn't provide details on the motivation. This is also mentioned here: https://github.com/jeremylong/DependencyCheck/issues/6048 https://github.com/jeremylong/DependencyCheck/issues/6088 Unfortunately some of the projects/customers...
I have 3 SetName mutually exclusive groups. In every group I'd like to have required parameters. 1 p11 (required=true) p12 (required=false) 2 p21 (required=true) p22 (required=false) 3 p31 (required=true) p32...
Hello, **thanks a lot for sharing your great and useful work!** I probably have just a small issue to Q7 https://github.com/commandlineparser/commandline/wiki/How-To#q7 with this question: ### How to Display version information...
https://github.com/commandlineparser/commandline/issues/379 This fixes the issue where the default value for the enum was not being displayed however there are some other issues with this. Now it will output the enum...
Is there a way to parse command line options without using reflection? As it stands, I have to make a class for each "verb". I would like to be able...
Currently, `ReflectionExtensions.IsMutable()` looks for public properties on an object which are writable to determine whether it is mutable. However, this logic does not account for other common immutable patterns like...
I try to always add a line like: `"Usage: clitool.exe [command] [options]" `when command is called with --help or without. I could add it like: `AddPreOptionsLine("Usage: clitool.exe [command] [options]"); `but...
I try to add examples for each verb i have. Is something similar to below possible? ``` [Verb("stop", HelpText = "Stop....")] [Example("Stop with custom timeout", "dustcli stop --timeout 5000")] public...