Skip to content

Commit

Permalink
perf tools: Align long options which have no short forms
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Dec 10, 2009
1 parent 90b86a9 commit bc3abfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/perf/util/parse-options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bc3abfb

Please sign in to comment.