]> git.itanic.dy.fi Git - log-plotter/commitdiff
options: Fix short option for --baud
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 7 Oct 2013 14:58:38 +0000 (17:58 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 7 Oct 2013 14:58:38 +0000 (17:58 +0300)
--baud in short is -b

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
options.c

index 5abca172add36bbee925efa6cbe8b5d1e201fa9d..28021f7b4a9a6a9c15a37b6f32f0264dce20e219 100644 (file)
--- a/options.c
+++ b/options.c
@@ -20,7 +20,7 @@ int read_args(int argc, char *argv[], struct plotter_options *opts)
        static struct option long_options[] = {
                { .val = 'd', .name = "device", .has_arg = 1, },
                { .val = 'o', .name = "output", .has_arg = 1 },
-               { .val = 'o', .name = "baud", .has_arg = 1 },
+               { .val = 'b', .name = "baud", .has_arg = 1 },
                { .val = 'v', .name = "verbose", .has_arg = 2 },
                { .val = 'q', .name = "quiet", },
        };