]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
uuidgen: fix --random
authorKarel Zak <kzak@redhat.com>
Mon, 19 Nov 2012 08:50:08 +0000 (09:50 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 19 Nov 2012 08:52:20 +0000 (09:52 +0100)
Addresses: https://github.com/karelzak/util-linux/issues/20
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/uuidgen.c

index 219be8b623ba007500fe14d8f4144e860f647805..6c22fce64efbf45bee81a693c345b9f0371109df 100644 (file)
@@ -53,7 +53,7 @@ main (int argc, char *argv[])
        uuid_t uu;
 
        static const struct option longopts[] = {
-               {"random", required_argument, NULL, 'r'},
+               {"random", no_argument, NULL, 'r'},
                {"time", no_argument, NULL, 't'},
                {"version", no_argument, NULL, 'V'},
                {"help", no_argument, NULL, 'h'},