Use positional argument for id
This commit is contained in:
parent
19b5b53b2a
commit
d9add138d2
2 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue