p11-kit/p11-kit-0.25.3-list-tokens-message.patch

38 lines
1.3 KiB
Diff
Raw Normal View History

From 8e46359a68deab9112a1e262d5384986ce87b5d8 Mon Sep 17 00:00:00 2001
From: Zoltan Fridrich <zfridric@redhat.com>
Date: Thu, 16 Nov 2023 14:43:21 +0100
Subject: [PATCH] Fix usage message in p11-kit list-tokens command
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
---
p11-kit/list-tokens.c | 2 +-
p11-kit/test-list-tokens.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/p11-kit/list-tokens.c b/p11-kit/list-tokens.c
index 48616cae..a9101945 100644
--- a/p11-kit/list-tokens.c
+++ b/p11-kit/list-tokens.c
@@ -151,7 +151,7 @@ p11_kit_list_tokens (int argc,
};
p11_tool_desc usages[] = {
- { 0, "usage: p11-kit list-tokens" },
+ { 0, "usage: p11-kit list-tokens [--only-uris] pkcs11:token" },
{ opt_verbose, "show verbose debug output", },
{ opt_quiet, "suppress command output", },
{ opt_only_urls, "only print token URIs", },
diff --git a/p11-kit/test-list-tokens.sh b/p11-kit/test-list-tokens.sh
index f61e241d..f933792e 100755
--- a/p11-kit/test-list-tokens.sh
+++ b/p11-kit/test-list-tokens.sh
@@ -21,7 +21,7 @@ teardown() {
test_list_tokens_without_uri() {
cat > list.exp <<EOF
-usage: p11-kit list-tokens
+usage: p11-kit list-tokens [--only-uris] pkcs11:token
-v, --verbose show verbose debug output
-q, --quiet suppress command output