When I declare option "--foo" as type='int' I would
like to be able to enter the value in decimal or hex
using the "0x" prefix:
should be the same.
This could easily be achieved by calling the int()
method with a second arg of "0" (base).
An optional keyword argument "base" could be used to
define the base of the integer value when adding the
Log in to post a comment.