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> { pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
app app
.arg(Arg::with_name("id") .arg(Arg::with_name("id")
.long("id") .index(1)
.short("i")
.takes_value(true) .takes_value(true)
.required(true) .required(true)
.help("View this entry at this store path") .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 * Major changes
* `imag-counter` and `libimagcounter` was removed. * `imag-counter` and `libimagcounter` was removed.
* `imag-mv` was introduced * `imag-mv` was introduced
* `imag-view` uses positional args now
## 0.4.0 ## 0.4.0