perf tools: Show tool command line options ordered
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 23 Oct 2015 14:23:28 +0000 (11:23 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 24 Oct 2015 00:50:49 +0000 (21:50 -0300)
commit869c55b0f473fecfe6c294c6fa965dedfe469e02
tree26c0a7dfbb52c39cb8bf48599840f7b30003a691
parent80fcd45ee05b4ef05e61d37a5ffb70a67095a9f6
perf tools: Show tool command line options ordered

When asking for a listing of the options, be it using -h or when an
unknown option is passed, order it by one-letter options, then the ones
having just long names.

Suggested-by: Ingo Molnar <mingo@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: Chandler Carruth <chandlerc@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-41qh68t35n4ehrpsuazp1dx8@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-options.c