summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-10-08 15:07:48 +0200
committerGitHub <noreply@github.com>2017-10-08 15:07:48 +0200
commitd26e8b62ac3b4ac2261c7996ed55d6f2aa5593ff (patch)
tree4675f13f077b58cf132af60ac43b4e194774d702
parent19b5b53b2add5a2a123f4737aeab24be7922e8e8 (diff)
parentd9add138d29f8d0376131d097fc234c94c7f915b (diff)
downloadimag-d26e8b62ac3b4ac2261c7996ed55d6f2aa5593ff.zip
imag-d26e8b62ac3b4ac2261c7996ed55d6f2aa5593ff.tar.gz
Merge pull request #1124 from matthiasbeyer/imag-view/positional-args
Use positional argument for id
-rw-r--r--bin/core/imag-view/src/ui.rs3
-rw-r--r--doc/src/09020-changelog.md1
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/core/imag-view/src/ui.rs b/bin/core/imag-view/src/ui.rs
index dd16585..d47973d 100644
--- a/bin/core/imag-view/src/ui.rs
+++ b/bin/core/imag-view/src/ui.rs
@@ -22,8 +22,7 @@ use clap::{Arg, App, ArgGroup, SubCommand};
pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
app
.arg(Arg::with_name("id")
- .long("id")
- .short("i")
+ .index(1)
.takes_value(true)
.required(true)
.help("View this entry at this store path")
diff --git a/doc/src/09020-changelog.md b/doc/src/09020-changelog.md
index 0b4b20a..fa234ed 100644
--- a/doc/src/09020-changelog.md
+++ b/doc/src/09020-changelog.md
@@ -21,6 +21,7 @@ This section contains the changelog from the last release to the next release.
* Major changes
* `imag-counter` and `libimagcounter` was removed.
* `imag-mv` was introduced
+ * `imag-view` uses positional args now
## 0.4.0