argagg icon indicating copy to clipboard operation
argagg copied to clipboard

Support for sinks of unparsed arguments

Open Manu343726 opened this issue 6 years ago • 1 comments

I would like to have a way to tell argagg to forward unknown arguments to a generic sink, so that unrecognized arguments can be processed by other means. Similar to LLVM's Sink which tells the parser that an option eats all unrecognized args.

Manu343726 avatar Jan 28 '19 15:01 Manu343726

After studying a bit your code I would say this is could be implemented by a config in the parser (parser.ignore_unknown_args() or something like that) and register all unknown flags in an internal buffer of the arguments map instead of throwing an exception.

Manu343726 avatar Jan 28 '19 18:01 Manu343726