On 11.03.2012 02:59, Andreas Vogel wrote: > Am >> Yes. And allowing "-s root" to continue is more important than to allow >> -s with no argument. > Don't get your point here. "-s" with no argument is already allowed. > This is actually causing the "unexpected behavior" I'm talking about. I mean that handling -s root -u UUID is more important than -u -s UUID since former is widespread in the existing scripts. >> We can rename ARG_OPTIONAL to ARG_OLD_OPTIONAL, make ARG_OLD_OPTIONAL to >> behave as to ignore X in --set X as possible argument. > I don't understand that. > > The "old" behavior, e.g. for "search -s|--set", is that if there is no > argument "-s" or "--set" needs to be followed by another option or by > "--". In other words: any argument which is not an option that follows > -s or --set will be taken as the argument for -s or --set. That's the > current situation. I mean changing the behaviour to GNU-like for long but not for short option. And it actually matches 1.98 behaviour. > > > -- Regards Vladimir 'φ-coder/phcoder' Serbinenko