This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: non coherent options, switches and descriptions
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- To: jg <jg at tk dot hm dot rd dot sanyo dot co dot jp>
- Cc: binutils at sources dot redhat dot com, gcc at gcc dot gnu dot org
- Date: 15 Jan 2002 17:12:46 +0000
- Subject: Re: non coherent options, switches and descriptions
- References: <3C3A8701.4000904@tk.hm.rd.sanyo.co.jp>
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