Search code examples
c++gflags

How to make google flags ignore unknown command line flags?


I'm using google flags for command line parsing. It's a wonderful tool, but somehow I need it to ignore unknown flags instead of print a line of

ERROR: unknown command line flag ...

Is there anyway to do it?


Solution

  • If you use a flagfile , unrecognised flags are ignored.