Hi,
I'm using docopt to parse arguments for my program. This program then calls a library function that accepts argc, argv arguments to do its own argument parsing. And I'd like to be able to call ./my_program --my-arg --my-other-arg -- --lib-arg --other-lib-arg.
Basically, I'd need to be know how many tokens have been parsed by docopt, so that I can pass (argc - parsed_tokens) and [argv[0]] + argv[parsed_tokens:] to that lib (using a Python syntax to be clearer 😉).
Would it be possible to add something similar to docopt? If I'm the only one interested in such a feature and if I end up writing it, would you be interested in merging it? :)
Thanks!
Hi,
I'm using docopt to parse arguments for my program. This program then calls a library function that accepts
argc, argvarguments to do its own argument parsing. And I'd like to be able to call./my_program --my-arg --my-other-arg -- --lib-arg --other-lib-arg.Basically, I'd need to be know how many tokens have been parsed by docopt, so that I can pass
(argc - parsed_tokens)and[argv[0]] + argv[parsed_tokens:]to that lib (using a Python syntax to be clearer 😉).Would it be possible to add something similar to docopt? If I'm the only one interested in such a feature and if I end up writing it, would you be interested in merging it? :)
Thanks!