aboutsummaryrefslogtreecommitdiff
path: root/nitrocli/src/args.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-06-08 11:37:04 -0700
committerDaniel Mueller <deso@posteo.net>2019-06-08 11:37:04 -0700
commit74be24daf592f3408524081c3760ca153294d643 (patch)
treea30dc8007f1a3772fc9092205ee0c648574c73a3 /nitrocli/src/args.rs
parentaf14d982cfcf0cee9d364458cd9495bb981c4c98 (diff)
downloadnitrocli-74be24daf592f3408524081c3760ca153294d643.tar.gz
nitrocli-74be24daf592f3408524081c3760ca153294d643.tar.bz2
Reword an incorrect error message
This change rewords the error message that is emitted if the lock command fails. The old message was incorrectly stating a problem with the retrieval of the device's status. While at it, also slightly rephrase the description for the hidden command to be more in line with that of the other storage commands, and replace lowercase 'nitrokey' with a capitalized one in a few comments.
Diffstat (limited to 'nitrocli/src/args.rs')
-rw-r--r--nitrocli/src/args.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/nitrocli/src/args.rs b/nitrocli/src/args.rs
index 765da89..16ff314 100644
--- a/nitrocli/src/args.rs
+++ b/nitrocli/src/args.rs
@@ -229,7 +229,7 @@ fn parse(
result
}
-/// Inquire the status of the nitrokey.
+/// Inquire the status of the Nitrokey.
fn status(ctx: &mut ExecCtx<'_>, args: Vec<String>) -> Result<()> {
let mut parser = argparse::ArgumentParser::new();
parser.set_description("Prints the status of the connected Nitrokey device");
@@ -276,7 +276,7 @@ fn encrypted(ctx: &mut ExecCtx<'_>, args: Vec<String>) -> Result<()> {
subcommand.execute(ctx, subargs)
}
-/// Open the encrypted volume on the nitrokey.
+/// Open the encrypted volume on the Nitrokey.
fn encrypted_open(ctx: &mut ExecCtx<'_>, args: Vec<String>) -> Result<()> {
let mut parser = argparse::ArgumentParser::new();
parser.set_description("Opens the encrypted volume on a Nitrokey Storage");
@@ -306,7 +306,7 @@ fn hidden(ctx: &mut ExecCtx<'_>, args: Vec<String>) -> Result<()> {
let help = cmd_help!(subcommand);
let mut subargs = vec![];
let mut parser = argparse::ArgumentParser::new();
- parser.set_description("Interact with a hidden volume");
+ parser.set_description("Interacts with the device's hidden volume");
let _ =
parser
.refer(&mut subcommand)