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


Hi jg,

> Binutils and GCC with no args
> 
> $ objcopy
> Usage: objcopy <switches> in-file [out-file]
> ....
> 
> $ objdump
> Usage: objdump OPTION... FILE...
> ....

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.

Cheers
        Nick


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