Re: Command-line parameters


Subject: Re: Command-line parameters
From: Nils Barth (nils_barth@post.harvard.edu)
Date: Mon Aug 20 2001 - 18:43:27 CDT


On 2001-08-20-22:32, Hubert Figuiere wrote:
> According to Paul Rohr <paul@abisource.com>:
> >
> > I thought that single-dashes *were* a longstanding Unix convention, and that
> > more verbose double-dash equivalents are a more recent GNU augmentation that
> > not everyone likes. But hey, what do I know.
>
> Signle dashes are for short and combinable option.
> think
>
> tar -zxvf
> or
> ps -auxwf
>
> Double dashes are for long option
> Think
> ./configure --enable-debug
>
> That is the GNU standard, it is consistant and works.
> BTW, Win users expect /option

Just to clarify the above:
by `combinable options', one means that:
tar -zxvf abi.tar
is equivalent to:
tar -z -x -v -f abi.tar

Thus, programs such as xterm that use
xterm -bg blue
to mean something
different from
xterm -b -g blue
are inconsistent.

-- 
  -nils



This archive was generated by hypermail 2b25 : Tue Aug 21 2001 - 02:34:01 CDT