diff --git a/src/cmd_u2fsign.rs b/src/cmd_u2fsign.rs index b3aa4d7..7f783b0 100644 --- a/src/cmd_u2fsign.rs +++ b/src/cmd_u2fsign.rs @@ -21,6 +21,7 @@ pub struct CommandImpl; impl Command for CommandImpl { fn name(&self) -> &str { "u2f-sign" } + fn subcommand<'a>(&self) -> App<'a, 'a> { SubCommand::with_name(self.name()).about("FIDO U2F Sign subcommand") .arg(Arg::with_name("app-id").short("a").long("app-id").default_value("https://example.com").help("App id")) @@ -31,6 +32,7 @@ impl Command for CommandImpl { .arg(Arg::with_name("key-handle").short("k").long("key-handle").takes_value(true).multiple(true).help("Key handle")) .arg(Arg::with_name("json").long("json").help("JSON output")) } + fn run(&self, _arg_matches: &ArgMatches, sub_arg_matches: &ArgMatches) -> CommandError { let json_output = sub_arg_matches.is_present("json"); if json_output { rust_util::util_msg::set_logger_std_out(false); }