I'd like to run some type conversion on a few arguments inside a command set, but it needs access to self. If I simply add the methods as the type argument in parser.add_argument I always get an invalid value warning from the parser without that callable having even been called.
I assume this is caused by the fact that the type callable requires there to be one argument, but if using a method, self must be provided?
I'd like to run some type conversion on a few arguments inside a command set, but it needs access to
self. If I simply add the methods as thetypeargument inparser.add_argumentI always get an invalid value warning from the parser without that callable having even been called.I assume this is caused by the fact that the
typecallable requires there to be one argument, but if using a method,selfmust be provided?