Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1470184

Re: [RFC PATCH 2/4] perf-probe: Add offline output directory option

From Arnaldo Carvalho de Melo <acme@kernel.org>
Newsgroups linux.kernel
Subject Re: [RFC PATCH 2/4] perf-probe: Add offline output directory option
Date 2016-08-25 16:50 +0200
Message-ID <sa48G-2d0-5@gated-at.bofh.it> (permalink)
References <s9zod-6nX-1@gated-at.bofh.it> <s9zoe-6nX-3@gated-at.bofh.it> <s9FWG-2mk-9@gated-at.bofh.it> <sa0y5-8ll-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Em Thu, Aug 25, 2016 at 07:48:16PM +0900, Masami Hiramatsu escreveu:
> On Wed, 24 Aug 2016 09:58:45 -0300
> Arnaldo Carvalho de Melo <acme@kernel.org> wrote:
> 
> > 
> > Also please fix the OPT_STRING string, it should start with a capital
> > letter:
> > 
> >         --max-probes <n>  Set how many probe points can be found for a probe.
> >         --no-inlines      Don't search inlined functions
> >         --outdir <directory>
> >                           path to offline output directory
> >         --range           Show variables location range in scope (with --vars only)
> > 
> > 
> > See how it stands out? All the others start with a capital letter.
> 
> BTW, actually in most case, perf shows option explanations start without a captal letter,
> 
> ./perf lock
> 
>  Usage: perf lock [<options>] {record|report|script|info}
> 
>     -D, --dump-raw-trace  dump raw trace in ASCII
>     -i, --input <file>    input file name
>     -v, --verbose         be more verbose (show symbol address, etc)
> 
> etc. Some commands (including probe) mixing it...

Right, inconsistent, so I went to see how other utilities do this, and,
say, something really old:

[acme@jouet linux]$ cp --help | grep -- "[      ]\+-[a-z]"
  or:  cp [OPTION]... -t DIRECTORY SOURCE...
  -a, --archive                same as -dR --preserve=all
  -b                           like --backup but does not accept an argument
  -d                           same as --no-dereference --preserve=links
  -f, --force                  if an existing destination file cannot be
                                 is ignored when the -n option is also used)
  -i, --interactive            prompt before overwrite (overrides a previous -n
  -l, --link                   hard link files instead of copying
  -n, --no-clobber             do not overwrite an existing file (overrides
                                 a previous -i option)
  -p                           same as --preserve=mode,ownership,timestamps
  -c                           deprecated, same as --preserve=context
  -R, -r, --recursive          copy directories recursively
  -s, --symbolic-link          make symbolic links instead of copying
  -t, --target-directory=DIRECTORY  copy all SOURCE arguments into DIRECTORY
  -u, --update                 copy only when the SOURCE file is newer
  -v, --verbose                explain what is being done
  -x, --one-file-system        stay on this file system
[acme@jouet linux]$ 

And then something more recent, and one perf initially was modelled after:

[acme@jouet linux]$ git commit -h |& grep -- "[         ]\+-[a-z]" | tail -15
    -q, --quiet           suppress summary after successful commit
    -v, --verbose         show diff in commit message template
    -m, --message <message>
    -c, --reedit-message <commit>
    -s, --signoff         add Signed-off-by:
    -t, --template <file>
    -e, --edit            force edit of commit
    -a, --all             commit all changed files
    -i, --include         add specified files to index for commit
    -p, --patch           interactively add changes
    -o, --only            commit only specified files
    -n, --no-verify       bypass pre-commit hook
    -z, --null            terminate entries with NUL
    -u, --untracked-files[=<mode>]
[acme@jouet linux]$ 

So, yeah, use lowercase and over time we can go on making it consistent...

- Arnaldo

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH 0/4] perf probe: Introduce remote cross-arch probes Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-24 08:00 +0200
  [RFC PATCH 2/4] perf-probe: Add offline output directory option Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-24 08:00 +0200
    Re: [RFC PATCH 2/4] perf-probe: Add offline output directory option Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-08-24 15:00 +0200
      Re: [RFC PATCH 2/4] perf-probe: Add offline output directory option Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-25 08:40 +0200
      Re: [RFC PATCH 2/4] perf-probe: Add offline output directory option Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-25 13:00 +0200
        Re: [RFC PATCH 2/4] perf-probe: Add offline output directory option Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-08-25 16:50 +0200
  [RFC PATCH 3/4] perf-probe: Ignore vmlinux buildid if offline kernel is given Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-24 08:00 +0200
  [RFC PATCH 1/4] perf-probe: Remove unused tracing_dir variable Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-24 08:00 +0200
    [tip:perf/core] perf probe: Remove unused tracing_dir variable tip-bot for Masami Hiramatsu <tipbot@zytor.com> - 2016-09-05 15:30 +0200
  [RFC PATCH 4/4] perf-probe: Support probing on offline cross-arch binary Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-24 08:00 +0200
    Re: [RFC PATCH 4/4] perf-probe: Support probing on offline  cross-arch binary Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-08-24 15:10 +0200
      Re: [RFC PATCH 4/4] perf-probe: Support probing on offline  cross-arch binary Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-25 09:10 +0200

csiph-web