Skip to content

Commit

Permalink
Dont require the keyfile argument if built with vault support
Browse files Browse the repository at this point in the history
  • Loading branch information
cholcombe973 committed Nov 25, 2016
1 parent 447ffee commit e3052f1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/cmds/create/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use rustc_serialize::hex::ToHex;

pub fn execute(args: &ArgMatches) {
let mut config = Config::default();
#[cfg(not(feature="vault"))]
let args_keyfile = args.value_of("keyfile").expect("internal error");
let args_backend = args.value_of("backend").expect("internal error");
let backup_name = args.value_of("NAME").expect("internal error");
Expand Down
1 change: 1 addition & 0 deletions src/cmds/list/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use clap::ArgMatches;


pub fn execute(args: &ArgMatches) {
#[cfg(not(feature="vault"))]
let args_keyfile = args.value_of("keyfile").expect("internal error");
let args_backend = args.value_of("backend").expect("internal error");

Expand Down
1 change: 1 addition & 0 deletions src/cmds/restore/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub fn execute(args: &ArgMatches) {
return;
}

#[cfg(not(feature="vault"))]
let args_keyfile = args.value_of("keyfile").expect("internal error");
let args_backend = args.value_of("backend").expect("internal error");
let backup_name = args.value_of("NAME").expect("internal error");
Expand Down
1 change: 1 addition & 0 deletions src/cmds/verify/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use clap::ArgMatches;

pub fn execute(args: &ArgMatches) {
let backup_name = args.value_of("NAME").expect("internal error");
#[cfg(not(feature="vault"))]
let args_keyfile = args.value_of("keyfile").expect("internal error");
let args_backend = args.value_of("backend").expect("internal error");

Expand Down

0 comments on commit e3052f1

Please sign in to comment.