summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2013-06-17 14:46:03 +0200
committerStef Walter <stef@thewalter.net>2013-06-17 15:22:47 +0200
commit41d2a28b89af41799d01d5973d026712d9174f31 (patch)
tree436e3e0d4e458eb583fdac7370b81f4da509ecd6
parente32481727387460d5900d0bbb495d3694facf64b (diff)
downloadp11-kit-41d2a28b89af41799d01d5973d026712d9174f31.tar.gz
trust: Print out usage when extract-trust run incorrectly
Also sorta covers --help and -h usage
-rwxr-xr-xtools/p11-kit-extract-trust.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/p11-kit-extract-trust.in b/tools/p11-kit-extract-trust.in
index b15dd7d..c7214e9 100755
--- a/tools/p11-kit-extract-trust.in
+++ b/tools/p11-kit-extract-trust.in
@@ -6,7 +6,12 @@
# appropriate. In the future this script will be called when the PKCS#11
# trust module is used to modifiy trust anchors and related data.
-echo "p11-kit: the placeholder extract-trust command has not been customized by your distribution."
+if [ $# -ne 0 ]; then
+ echo "usage: p11-kit extract-trust" >&2
+ exit 2
+fi
+
+echo "p11-kit: the placeholder extract-trust command has not been customized by your distribution." >&2
# You can use commands like this to extract data from trust modules
# into appropriate locations for your distribution.