Messages in this thread | | | Date | Thu, 11 Jun 2015 10:58:51 -0300 | From | Arnaldo Carvalho de Melo <> | Subject | Re: [PATCH] perf, record: Ammend option summaries |
| |
Em Thu, Jun 11, 2015 at 10:46:19AM +0200, Peter Zijlstra escreveu: > On Wed, Jun 10, 2015 at 02:27:43PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Wed, Jun 10, 2015 at 04:48:50PM +0200, Peter Zijlstra escreveu: > > > Because there's too many options and I cannot read, I frequently get > > > confused between -c and -P, and try to do things like:
> > > perf record -P 50000 -- foo
> > > Which does not work; try and make the option description slightly longer > > > and hopefully less confusing.
> > Thanks, I'll check and update tools/perf/Documentation/perf-record.txt, > > i.e. the man page.
> Thanks, I always forget that stuff even exists. I further get totally > annoyed every time I do: perf record --help and it vomits on me.
> Could we please make -h and --help do the exact same thing?
Well, right now it tries to read the man-page, that if not installed, will bail out straight away, I guess this is something we inherited from the git code base, long ago.
Ok, I think I'll try to use both, i.e. make 'perf foo --help' fall back to '-h' when the man page is not found, with an extra warning, at the top, when doing that.
- Arnaldo
| |