aboutsummaryrefslogtreecommitdiff
path: root/nitrocli/src/args.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-12-25 23:02:18 +0100
committerDaniel Mueller <deso@posteo.net>2018-12-27 10:44:24 -0800
commit21e7c36a0ae14f2200e806fcf66cbe0836cc2ec0 (patch)
treeebdcc5cc0590e07f2a5cfd304f2cd7debd9fed98 /nitrocli/src/args.rs
parentb2bbb614963dc2517e17587bd7db00feea8f26f9 (diff)
downloadnitrocli-21e7c36a0ae14f2200e806fcf66cbe0836cc2ec0.tar.gz
nitrocli-21e7c36a0ae14f2200e806fcf66cbe0836cc2ec0.tar.bz2
Add status output for Nitrokey Pro
Currently, the status command fails for a Nitrokey Pro. This patch changes the command to also print basic status information for Pro devices. For the sake of consistency, the common status is always queried using the common `Device` functions, even if the Storage status includes the same information.
Diffstat (limited to 'nitrocli/src/args.rs')
-rw-r--r--nitrocli/src/args.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nitrocli/src/args.rs b/nitrocli/src/args.rs
index ab80f3d..b48acfa 100644
--- a/nitrocli/src/args.rs
+++ b/nitrocli/src/args.rs
@@ -211,7 +211,7 @@ fn parse(parser: &argparse::ArgumentParser<'_>, args: Vec<String>) -> Result<()>
/// Inquire the status of the nitrokey.
fn status(args: Vec<String>) -> Result<()> {
let mut parser = argparse::ArgumentParser::new();
- parser.set_description("Print the status of the connected Nitrokey Storage");
+ parser.set_description("Print the status of the connected Nitrokey device");
parse(&parser, args)?;
commands::status()