argparse option with no space

Viewed 41

How can I use argparse to parse an option such as -DFOO=BAR, where the "option" here is actually -D, and I want it to store FOO=BAR as the value? Do I have to manually handle the unknown args and then look for these myself, or is there an easier way?

0 Answers
Related