summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-09-20 18:39:06 +0200
committerGitHub <noreply@github.com>2017-09-20 18:39:06 +0200
commit1e7e6ab601ccd36275106e53488d20c551678bdb (patch)
treeb5181401f21559cc495ed46e5209610b43f7471d
parente7ec39bdcc7b9e0b372efcc17ec19d977bd73921 (diff)
parent456c5539cc6813a078945f8c63cb1d1a4cbd5465 (diff)
downloadimag-1e7e6ab601ccd36275106e53488d20c551678bdb.zip
imag-1e7e6ab601ccd36275106e53488d20c551678bdb.tar.gz
Merge pull request #1090 from matthiasbeyer/imag-ref/positional-args
imag-ref: Use positional args
-rw-r--r--bin/core/imag-ref/src/ui.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/core/imag-ref/src/ui.rs b/bin/core/imag-ref/src/ui.rs
index 5c4685e..5e8aa6b 100644
--- a/bin/core/imag-ref/src/ui.rs
+++ b/bin/core/imag-ref/src/ui.rs
@@ -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")