Browse Source

uuidgen: give hint in usage() what uuid namepaces can be used

Also fix --help and --version alignment.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
pull/1214/head
Sami Kerola 2 years ago
parent
commit
e69cb8b91d
No known key found for this signature in database
GPG Key ID: D46FEF7E61DBB46
  1. 3
      misc-utils/uuidgen.c

3
misc-utils/uuidgen.c

@ -32,12 +32,13 @@ static void __attribute__((__noreturn__)) usage(void)
fputs(_(" -r, --random generate random-based uuid\n"), out);
fputs(_(" -t, --time generate time-based uuid\n"), out);
fputs(_(" -n, --namespace ns generate hash-based uuid in this namespace\n"), out);
printf(_(" available namespaces: %s\n"), "@dns @url @oid @x500");
fputs(_(" -N, --name name generate hash-based uuid from this name\n"), out);
fputs(_(" -m, --md5 generate md5 hash\n"), out);
fputs(_(" -s, --sha1 generate sha1 hash\n"), out);
fputs(_(" -x, --hex interpret name as hex string\n"), out);
fputs(USAGE_SEPARATOR, out);
printf(USAGE_HELP_OPTIONS(18));
printf(USAGE_HELP_OPTIONS(21));
printf(USAGE_MAN_TAIL("uuidgen(1)"));
exit(EXIT_SUCCESS);
}

Loading…
Cancel
Save