Skip to content

Commit abe3e7a

Browse files
committed
doc: add --label option to man page
Document the new option and clarify its description in the --help output a bit as well. Signed-off-by: Jonas Witschel <diabonas@gmx.de>
1 parent 2a04728 commit abe3e7a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

man/tpm2-totp.1.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ options.
2424

2525
* `generate`:
2626
Generate a new TOTP secret.
27-
Possible options: `-b`, `-N`, `-p`, `-P`, `-T`
27+
Possible options: `-b`, `-l`, `-N`, `-p`, `-P`, `-T`
2828

2929
* `calculate`:
3030
Calculate a TOTP value.
@@ -50,6 +50,9 @@ options.
5050
* `-h`, `--help`:
5151
Print help
5252

53+
* `-l`, `--label`:
54+
Label to use for display in the TOTP authenticator app (default: TPM2-TOTP)
55+
5356
* `-N <nvindex>`, `--nvindex <nvindex>`:
5457
TPM NV index to store data (default: 0x018094AF)
5558

src/tpm2-totp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ char *help =
3636
"Options:\n"
3737
" -h, --help print help\n"
3838
" -b, --banks Selected PCR banks (default: SHA1,SHA256)\n"
39+
" -l, --label Label to use for display in the TOTP authenticator app (default: TPM2-TOTP)\n"
3940
" -N, --nvindex TPM NV index to store data (default: 0x018094AF)\n"
4041
" -P, --password Password for recovery/resealing (default: None)\n"
4142
" -p, --pcrs Selected PCR registers (default: 0,2,4,6)\n"
4243
" -t, --time Show the time used for calculation\n"
4344
" -T, --tcti TCTI to use\n"
44-
" -l, --label Hostname to use for the TOTP label\n"
4545
" -v, --verbose print verbose messages\n"
4646
"\n";
4747

0 commit comments

Comments
 (0)