perf tools: Align long options which have no short forms
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 10 Dec 2009 07:22:17 +0000 (15:22 +0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 10 Dec 2009 07:30:28 +0000 (08:30 +0100)
Before:

$ ./perf kmem
...
    -l, --line <num>      show n lines
    --raw-ip              show raw ip instead of symbol

After:

$ ./perf kmem
...
    -l, --line <num>      show n lines
        --raw-ip          show raw ip instead of symbol

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
LKML-Reference: <4B20A1A9.3040104@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/parse-options.c

index 6d8af48c925eb6b0f9f094164e89bb000963afe1..efebd5b476b320685178947332a48214d76529b5 100644 (file)
@@ -430,6 +430,9 @@ int usage_with_options_internal(const char * const *usagestr,
                pos = fprintf(stderr, "    ");
                if (opts->short_name)
                        pos += fprintf(stderr, "-%c", opts->short_name);
+               else
+                       pos += fprintf(stderr, "    ");
+
                if (opts->long_name && opts->short_name)
                        pos += fprintf(stderr, ", ");
                if (opts->long_name)