--- uuid_cli.c 2004/01/19 14:11:50 1.14
+++ uuid_cli.c 2004/02/13 14:29:32 1.15
@@ -62,7 +62,8 @@
vfprintf(stderr, str, ap);
fprintf(stderr, "\n");
}
- fprintf(stderr, "usage: uuid [-1] [-n count] [-a] [-d] [-o filename] [UUID]\n");
+ fprintf(stderr, "usage: uuid [-v version] [-m] [-n count] [-1] [-r] [-o filename] [namespace-name]\n");
+ fprintf(stderr, "usage: uuid -d [-r] [-o filename] [uuid]\n");
va_end(ap);
exit(1);
}
@@ -92,7 +93,7 @@
raw = 0; /* default is ASCII output */
decode = 0; /* default is to encode */
version = UUID_MAKE_V1;
- while ((ch = getopt(argc, argv, "1n:rdmo:v:")) != -1) {
+ while ((ch = getopt(argc, argv, "1n:rdmo:v:h")) != -1) {
switch (ch) {
case '1':
iterate = 1;
@@ -132,6 +133,9 @@
break;
}
break;
+ case 'h':
+ usage(NULL);
+ break;
default:
usage("invalid option '%c'", optopt);
}
|