This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: non coherent options, switches and descriptions


Hello,

Thank you for making the modification Nick.

Nick Clifton wrote:
<snip>

  >
  > I have patched objcopy so that it will now use the word 'options'
  > instead of 'switches'.
  >
  >
  >
  >>$ gcc -v
  >>Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/specs
  >>gcc version 2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk)
  >>
  >>$ objdump -v
  >>objdump: invalid option -- v
  >>
  >>$ objdump -V
  >>GNU objdump 2.11.90.0.8
  >>
  >>$ gcc -V
  >>gcc: argument to `-V' is missing
  >>
  >
  > There is no real way around this one.  Most of the binutils use -v to
  > mean "enable verbose" and -V to mean "display version".  The fact that
  > gcc has a different interpretation of these two options is just one of
  > those things.

ok, just tested some of the other binutils apps and some of them have
similar differences

$ nm --help
Usage: nm [OPTION]... [FILE]...
List symbols from FILEs (a.out by default).

$ strip --help
Usage: strip <switches> in-file(s)

$ objdump --help
Usage: objdump OPTION... FILE...
Display information from object FILE.

Some have 'OPTION' some have no quotes, some have file(s) some have
FILEs etc, is it possible to change them all to follow one style?
Personally i think lower case discriptions look best.

I would have thought GNU would have had a doc on this, they seem to
cover things like this.


JG




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]