1

I have a very generic question regarding argument parsing in argparse. I have a requirement wherein the arguments will be containing '-' in the beginning. Please can someone help me how to take this into account?

e.g.

sample.py -Defines -test_1

I want -test_1 to be accepted as an argument parameter for -Defines and not treated as a separate argument.

Ivan Chaer
  • 6,980
  • 1
  • 38
  • 48
Amit Goel
  • 35
  • 1
  • 10

0 Answers0