On Thu, 17 Aug 2006 18:32:55 +0200, Hisham Muhammad <[EMAIL PROTECTED]> wrote:

On 8/17/06, Jonas Karlsson <[EMAIL PROTECTED]> wrote:
On Wed, 16 Aug 2006 22:33:31 +0200, Hisham Muhammad <[EMAIL PROTECTED]>
wrote:

> On 8/16/06, Jonas Karlsson <[EMAIL PROTECTED]> wrote:
>> I have thought of implementing getopt for parsing options in
>> OptionParser,
>> so one could stack options better. Anyone got any objections?
>
> Using bash's builtin getopts? I admit I never looked closely at it (or
> I did so long ago I can't remember). Sounds like a good idea.
>
After doing some more research I found that there exist getopts, which is
bash built in, and getopt, which is a command in util-linux. Should I
prefer one? Is getopts supported by other shells (should we care for other
shells, other than bash-compatible). As for util-linux it's a required
package allready, right?

Oh, I assumed you would use getopts. If they're roughly equivalent, I
think using the bash builtin is the best option, so that, e.g. a
broken util-linux wouldn't stop SymlinkProgram from running.


Ok, I will use the util-linux version as the bash version isn't as powerful. Ofcourse I'll keep the old implementation as fallback, for when util-linux is broken.

--
/Jonas

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to