These are chat archives for kbknapp/clap-rs

29th
Jan 2018
Alex Eubanks
@endeav0r
Jan 29 2018 03:11
Is there a way to get “All remaining arguments” ?
Kevin K.
@kbknapp
Jan 29 2018 03:43
@endeav0r yes but the specifics depend on your exact use case. Depending how you'd like the CLI to work will determine which method you use.
Do you have some examples of what you're trying to do?
Alex Eubanks
@endeav0r
Jan 29 2018 03:54
./application -a —blah — <capture> <these> <arguments>
Kevin K.
@kbknapp
Jan 29 2018 04:00
Just using a positional argument with multiple(true) and Arg:: allow_hyphen_values will do that, however if you need something more specific use AppSettings:: TrailingVarArg if you don't want to use a -- separator. Or Arg::last.
Alex Eubanks
@endeav0r
Jan 29 2018 04:00
ok thanks :)
Kevin K.
@kbknapp
Jan 29 2018 04:01
No prob. I'm about to hit the sack for the night, but you need more help don't hesitate to post it and I'll answer in the morning ;)
If*