argparse
argparse copied to clipboard
How to implement '-I' option like in gcc
As we all know, gcc/g++ has '-I' option to indicate include paths. However, there is no whitespace between '-I' and include paths. I want to implement this with argparse but it seems that argparse does not support this pattern.
Thanks for all help!
Generally, argparse-style parsers (including this one) do not support options with directly-attached arguments.
This pattern is from getopt-style command line argument parsing. The good news is that you likely already have getopt via unistd.h.