argparse icon indicating copy to clipboard operation
argparse copied to clipboard

How to implement '-I' option like in gcc

Open KuiWei004 opened this issue 3 years ago • 1 comments

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!

KuiWei004 avatar Sep 04 '22 08:09 KuiWei004

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.

skrobinson avatar Sep 06 '22 16:09 skrobinson