Merge pull request #1090 from matthiasbeyer/imag-ref/positional-args

imag-ref: Use positional args
This commit is contained in:
Matthias Beyer 2017-09-20 18:39:06 +02:00 committed by GitHub
commit 1e7e6ab601
1 changed files with 2 additions and 4 deletions

View File

@ -27,8 +27,7 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
.about("Add a reference to a file outside of the store")
.version("0.1")
.arg(Arg::with_name("path")
.long("path")
.short("p")
.index(1)
.takes_value(true)
.required(true)
.help("The path of the file")
@ -52,8 +51,7 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
.about("Remove a reference")
.version("0.1")
.arg(Arg::with_name("hash")
.long("hash")
.short("h")
.index(1)
.takes_value(true)
.required(true)
.help("Remove the reference with this hash")