Utility.CommandLine.Arguments icon indicating copy to clipboard operation
Utility.CommandLine.Arguments copied to clipboard

Trying to use negative double value cause Exception

Open tundy opened this issue 3 years ago • 1 comments

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; }

tundy avatar May 20 '22 06:05 tundy

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.

jpdillingham avatar Jul 06 '22 14:07 jpdillingham