Vincent van Ravesteijn - TNW wrote:
> >Log:
> >Move command line arg --batch to -batch.
> >Things are still bit inconsistent due to the existence of additional --
> switches, but the correct fix is not so easy.
> >
> 
> Aren't you now destroying the backward compatibility for all the scripts
> that people might have made ?

this has been introduced in 2.0 so no backward compatibility issue exists.

> Isn't it the 'normal' way of operation to have 2 dashes before a 'long'
> parameter. I don't really see the need of changing this for no apparent
> reason.

there is old unix way of using "-arg".

newer way is "-c value" and allowing of mixing chars without args to be mixed
together like -cXrGt or --long-option=value (note this "=").

lyx started the old way.
the inconsitency started when somebody added --execute, --export, --import
and adding 1 char synonyms, while
1) leaving old single dashes opts
2) not distinguishing seperate way of args specification.

adding --batch makes things even worse. because now there is even no
single dash way.

> If you want to be consistent, maybe you can add a '-b' parameter in
> addition to the '--batch' parameter. This seems to be fairly normal.

there is no consistency in our current pars handling.
the consitency could be done via
either killing additional --options (or at least hide them from man pages).
or rewriting the handling to be done correctly the "new way". just adding
"-b" won't do.

in either way adding just --batch made things worse.

pavel

Reply via email to