]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
isosize: make --divisor to require argument
authorSami Kerola <kerolasa@iki.fi>
Sun, 16 Feb 2014 23:54:22 +0000 (23:54 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Feb 2014 13:16:21 +0000 (14:16 +0100)
Silly bug, only the short option -d allowed divisor argument.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
disk-utils/isosize.c

index f90029e2a2c59ddc3c802908756be55ad0e41dc0..5030a50b109a070268d70e9dd5de291849b7a888 100644 (file)
@@ -186,7 +186,7 @@ int main(int argc, char **argv)
        long divisor = 0;
 
        static const struct option longopts[] = {
-               {"divisor", no_argument, 0, 'd'},
+               {"divisor", required_argument, 0, 'd'},
                {"sectors", no_argument, 0, 'x'},
                {"version", no_argument, 0, 'V'},
                {"help", no_argument, 0, 'h'},