[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [PATCH 2/4] easy-build.sh: use getopts instead of rolling our own option parsing.

On Fri, Aug 07, 2009 at 02:05:52PM +0200, Frans Pop wrote:
> On Friday 07 August 2009, Ian Campbell wrote:
> > +while getopts d:h OPT ; do
> Is getopts also supported in dash?

Yes, and in POSIX.

> Maybe it would be good to also support --help if -h is added.

getopts can't do longoptions. I'd say supporting --help is probably
not worth the extra code.


Reply to: