[PATCH] Fix long options
authorJens Axboe <axboe@suse.de>
Wed, 5 Oct 2005 07:28:20 +0000 (09:28 +0200)
committerJens Axboe <axboe@suse.de>
Wed, 5 Oct 2005 07:28:20 +0000 (09:28 +0200)
Partly from Alan.

blkparse.c
blktrace.c

index d81e2786c15677c1fd27b6a9b7e648a25e145385..7e3f0fad2ef75cb369c748c71cbca2174d404cfb 100644 (file)
@@ -114,13 +114,13 @@ static struct option l_opts[] = {
                .val = 'b'
        },
        {
-               .name = "per program stats",
+               .name = "per-program-stats",
                .has_arg = no_argument,
                .flag = NULL,
                .val = 's'
        },
        {
-               .name = "track ios",
+               .name = "track-ios",
                .has_arg = no_argument,
                .flag = NULL,
                .val = 't'
@@ -150,7 +150,7 @@ static struct option l_opts[] = {
                .val = 'F'
        },
        {
-               .name = "hash by name",
+               .name = "hash-by-name",
                .has_arg = no_argument,
                .flag = NULL,
                .val = 'n'
@@ -168,7 +168,7 @@ static struct option l_opts[] = {
                .val = 'v'
        },
        {
-               .name = "input directory",
+               .name = "input-directory",
                .has_arg = required_argument,
                .flag = NULL,
                .val = 'D'
index 9aa7b21b0d9ac8d0923517902d473095a7a1b76b..8d94cbe5a1381d88b27468222510b89cee675a06 100644 (file)
@@ -95,19 +95,19 @@ static struct option l_opts[] = {
                .val = 'v'
        },
        {
-               .name = "buffer size (in KiB)",
+               .name = "buffer-size",
                .has_arg = required_argument,
                .flag = NULL,
                .val = 'b'
        },
        {
-               .name = "nr of sub buffers",
+               .name = "num-sub-buffers",
                .has_arg = required_argument,
                .flag = NULL,
                .val = 'n'
        },
        {
-               .name = "output directory",
+               .name = "output-dir",
                .has_arg = required_argument,
                .flag = NULL,
                .val = 'D'