Is there a recommended approach or workaround to get parseopt.getopt to parse negative numbers as positional arguments rather than short options?
For example, given the following command line, getopt will treat -10 as a cmdShortOption rather than a positional argument.
tempconvert -10 F --to=C
It might not be quite as CL-user transparent as what you're looking for, but having the CL user quote a space in front of the number usually works as in:
tempconvert \ -10 F --to=C
or
tempconvert " -10" F --to=C
You might need to strip the whitespace off pre-parsing depending on what integer parser you are using.