Merge pull request #1124 from matthiasbeyer/imag-view/positional-args

Use positional argument for id
This commit is contained in:
Matthias Beyer 2017-10-08 15:07:48 +02:00 committed by GitHub
commit d26e8b62ac
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