aboutsummaryrefslogtreecommitdiff
path: root/utils/uri/uri.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2008-07-14 21:28:19 +0000
committerRob Austein <sra@hactrn.net>2008-07-14 21:28:19 +0000
commit4729eb2c8c7482d40a74d29c73860da03170a979 (patch)
treedb7157faf09e150e0e30fac0492c20babb009f16 /utils/uri/uri.c
parentf979ca098fb4791fc3594b2d35e32eb1695569cf (diff)
Fix usage messages
svn path=/utils/print_manifest/print_manifest.c; revision=1992
Diffstat (limited to 'utils/uri/uri.c')
-rw-r--r--utils/uri/uri.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/uri/uri.c b/utils/uri/uri.c
index 3a8a9fbb..daef8da3 100644
--- a/utils/uri/uri.c
+++ b/utils/uri/uri.c
@@ -159,11 +159,16 @@ int main(int argc, char *argv[])
format = c;
break;
default:
- fprintf(stderr, "usage: %s [-p | -d] cert [cert...]\n", argv[0]);
ret = 1;
}
}
+ if (argc == optind)
+ ret = 1;
+
+ if (ret != 0)
+ fprintf(stderr, "usage: %s [-p | -d] cert [cert...]\n", argv[0]);
+
if (ret == 0) {
argc -= optind;
argv += optind;