How to handle extra arguments
Hello! I am building a repl/interpreter CLI and I would like to have a way of passing extra arguments to my program.
For example, `<myexe> run file -- arg1 arg2 arg3` - `run file` should be parsed by opt-env-conv as normal, but then everything after the `--` should be collected into a single list (similar behaviour to `cabal run` and other tools)
A sufficient workaround could be if the parser could return an extra list of ignored or unrecognised arguments that I could then parse manually.
If there's already a way to do this please let me know, but I couldn't find any obvious ways. Even doing `setting [name "--"]` seems to be unsupported
Thank you!
1 条评论