--On Thursday, February 19, 2009 06:50:45 PM +0100 Bart Blanquart <Bart.Blanquart at Sun.COM> wrote:
> On 02/19/09 18:25, Glenn Faden wrote: >> This looks good to me. It probably could have been coded differently >> using getopt, but since that wasn't used in the original code, I think >> your changes are acceptable. > > I originally coded it using getopt, but that fails to handle "auths -ab > username" correctly, as it can't tell if the "b" is the argument to "-a" > or a (non-existant) option. No, that's unambiguous. If -a takes an argument, it _cannot_ be followed by other options in the same word; in "-ab", "b" is _always_ the argument to -a.