Use positional argument for id

This commit is contained in:
Matthias Beyer 2017-10-08 11:56:43 +02:00
parent 19b5b53b2a
commit d9add138d2
2 changed files with 2 additions and 2 deletions

View file

@ -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")

View file

@ -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