Utility.CommandLine.Arguments
Utility.CommandLine.Arguments copied to clipboard
Trying to use negative double value cause Exception
System.ArgumentException: 'Specified value '' for argument 'max' (expected type: System.Double). See inner exception for details.' Inner exception: FormatException: Input string was not in a correct format.
[Argument('1', "max", "max")]
private static double max { get; set; }
[Argument('2', "max_minus", "max minus")]
private static double max_minus { get; set; }
[Argument('3', "min", "min")]
private static double min { get; set; }
[Argument('4', "min_minus", "min minus")]
private static double min_minus { get; set; }
I'm pretty sure any literal value starting with - or -- is going to need to be enclosed by quotes. I'll test it out and see if it works.