Skip to content

Instantly share code, notes, and snippets.

@sbstp
Created December 25, 2017 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbstp/a887ff3f1a8dbfeb1fe3ba1cc8788534 to your computer and use it in GitHub Desktop.
Save sbstp/a887ff3f1a8dbfeb1fe3ba1cc8788534 to your computer and use it in GitHub Desktop.
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