Created
December 25, 2017 00:57
-
-
Save sbstp/a887ff3f1a8dbfeb1fe3ba1cc8788534 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let matches = App::new("aconv") | |
.setting(AppSettings::TrailingVarArg) | |
.arg( | |
Arg::with_name("codec") | |
.short("c") | |
.required(true) | |
.takes_value(true), | |
) | |
.arg( | |
Arg::with_name("rest") | |
.multiple(true) | |
.allow_hyphen_values(true), | |
) | |
.get_matches(); | |
println!("{:?}", matches); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment