JasperFx/oakton

Arguments and flags do not handle negative numbers

chrispellett opened this issue · 2 comments

Hi there,
I've been trying to use this great tool for some command line apps we write. Most of the functionality works quite well. However, I can't seem to be able to parse negative numbers properly. Specifically, multi-digit ones seem to cause the most trouble (I am wrapping in quotes, and that does seem to make single digit negative numbers happy).

I've created a simple repo with xunit tests that shows this behaviour:
https://github.com/chrispellett/OaktonCommandParsingSandbox

Any help would be greatly appreciated.

Thanks!

It's only a problem for arguments, not flags. I apparently never thought about numeric arguments like this.

Nevermind, it's both. Different underlying causes.