Make API version selection possible, update for newer ffsend-api version

This commit is contained in:
timvisee 2019-02-27 19:42:14 +01:00
parent f53f11a9f1
commit ca122cad66
No known key found for this signature in database
GPG key ID: B8DB720BC383E172
15 changed files with 407 additions and 20 deletions

View file

@ -2,6 +2,7 @@ extern crate directories;
use clap::{App, AppSettings, Arg, ArgMatches};
use super::arg::{ArgApi, CmdArg};
#[cfg(feature = "history")]
use super::matcher::HistoryMatcher;
use super::matcher::{
@ -139,6 +140,7 @@ impl<'a: 'b, 'b> Handler<'a> {
.global(true)
.help("Enable verbose information and logging"),
)
.arg(ArgApi::build())
.subcommand(CmdDebug::build())
.subcommand(CmdDelete::build())
.subcommand(CmdDownload::build().display_order(2))