Merge pull request #1090 from matthiasbeyer/imag-ref/positional-args
imag-ref: Use positional args
This commit is contained in:
commit
1e7e6ab601
1 changed files with 2 additions and 4 deletions
|
@ -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")
|
.about("Add a reference to a file outside of the store")
|
||||||
.version("0.1")
|
.version("0.1")
|
||||||
.arg(Arg::with_name("path")
|
.arg(Arg::with_name("path")
|
||||||
.long("path")
|
.index(1)
|
||||||
.short("p")
|
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.required(true)
|
.required(true)
|
||||||
.help("The path of the file")
|
.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")
|
.about("Remove a reference")
|
||||||
.version("0.1")
|
.version("0.1")
|
||||||
.arg(Arg::with_name("hash")
|
.arg(Arg::with_name("hash")
|
||||||
.long("hash")
|
.index(1)
|
||||||
.short("h")
|
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.required(true)
|
.required(true)
|
||||||
.help("Remove the reference with this hash")
|
.help("Remove the reference with this hash")
|
||||||
|
|
Loading…
Reference in a new issue