imag-store: Update clap: 1.5.5 -> 2.1.1
This commit is contained in:
parent
a09b5281db
commit
da74e4976e
3 changed files with 2 additions and 3 deletions
|
@ -4,7 +4,7 @@ version = "0.1.0"
|
|||
authors = ["Matthias Beyer <mail@beyermatthias.de>"]
|
||||
|
||||
[dependencies]
|
||||
clap = "1.5.5"
|
||||
clap = "2.1.1"
|
||||
log = "0.3.5"
|
||||
version = "2.0.1"
|
||||
semver = "0.2.1"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use clap::{Arg, App, SubCommand};
|
||||
|
||||
pub fn build_ui<'a>(app: App<'a, 'a, 'a, 'a, 'a, 'a>) -> App<'a, 'a, 'a, 'a, 'a, 'a> {
|
||||
pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
|
||||
app.subcommand(SubCommand::with_name("create")
|
||||
.about("Create an entry from the store")
|
||||
.version("0.1")
|
||||
|
|
|
@ -44,7 +44,6 @@ pub fn build_toml_header(matches: &ArgMatches, mut header: EntryHeader) -> Entry
|
|||
debug!("Building header from cli spec");
|
||||
if let Some(headerspecs) = matches.values_of("header") {
|
||||
let mut main = header.into();
|
||||
debug!("headerspec = {:?}", headerspecs);
|
||||
let kvs = headerspecs.into_iter()
|
||||
.filter_map(|hs| {
|
||||
debug!("- Processing: '{}'", hs);
|
||||
|
|
Loading…
Reference in a new issue