aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nitrocli/README.md1
-rw-r--r--nitrocli/doc/nitrocli.15
-rw-r--r--nitrocli/doc/nitrocli.1.pdfbin13301 -> 13301 bytes
-rw-r--r--nitrocli/src/args.rs2
4 files changed, 7 insertions, 1 deletions
diff --git a/nitrocli/README.md b/nitrocli/README.md
index 96ae3a5..33e094a 100644
--- a/nitrocli/README.md
+++ b/nitrocli/README.md
@@ -12,6 +12,7 @@ certain commands on the [Nitrokey Storage][nitrokey-storage] device.
The following commands are currently supported:
- status: Report status information about the Nitrokey.
+- lock: Lock the Nitrokey.
- config: Access the Nitrokey's configuration
- get: Read the current configuration.
- set: Change the configuration.
diff --git a/nitrocli/doc/nitrocli.1 b/nitrocli/doc/nitrocli.1
index fc993f1..f16ecc6 100644
--- a/nitrocli/doc/nitrocli.1
+++ b/nitrocli/doc/nitrocli.1
@@ -17,6 +17,11 @@ and the password safe.
Print the status of the connected Nitrokey device, including the stick serial
number, the firmware version, and the PIN retry count.
.TP
+.B nitrocli lock
+Lock the Nitrokey.
+This command locks the password safe (see the Password safe section). On the
+Nitrokey Storage, it will also close the encrypted volume (see the Storage
+section).
.SS Storage
.TP
diff --git a/nitrocli/doc/nitrocli.1.pdf b/nitrocli/doc/nitrocli.1.pdf
index a98b9d2..0354e93 100644
--- a/nitrocli/doc/nitrocli.1.pdf
+++ b/nitrocli/doc/nitrocli.1.pdf
Binary files differ
diff --git a/nitrocli/src/args.rs b/nitrocli/src/args.rs
index f1db33f..ffcc0d1 100644
--- a/nitrocli/src/args.rs
+++ b/nitrocli/src/args.rs
@@ -952,7 +952,7 @@ fn parse_arguments(args: Vec<String>) -> Result<(Command, Vec<String>)> {
let _ = parser.refer(&mut command).required().add_argument(
"command",
argparse::Store,
- "The command to execute (config|otp|pin|pws|status|storage)",
+ "The command to execute (config|lock|otp|pin|pws|status|storage)",
);
let _ = parser.refer(&mut subargs).add_argument(
"arguments",