[haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot
- From: Ryan Leavengood <leavengood@xxxxxxxxx>
- To: haiku-commits@xxxxxxxxxxxxx
- Date: Fri, 20 Nov 2009 12:51:32 -0500
On Fri, Nov 20, 2009 at 5:51 AM, Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> wrote: > > Indeed, you should always use getopt()/getopt_long() for options. I have thought for some time that having some sort of OptionParse class which wraps the above nicely might be a handy thing in the Haiku code. At least as part of the private shared code. Because it seems like we have a lot of manual option parsing and things aren't consistent. That always bothered me about some of the BeOS command-line tools too. You can complain a lot about the GNU stuff but they at least got that right. Though using getopt() and getopt_long() is a bit ugly, hence why I would like a class (at least for C++ code.) So if anyone is inclined please take a stab at this. Otherwise I'll work on it at some indeterminate time in the future (maybe if I add command-line options to the browser.) -- Regards, Ryan
- References:
- [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot
- From: Humdinger
- [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot
- From: Axel Dörfler
- [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot
Other related posts:
- » [haiku-commits] r34140 - haiku/trunk/src/apps/screenshot - fredrik
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Jérôme Duval
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Stephan Assmus
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Fredrik Modèen
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Fredrik Modèen
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Stephan Assmus
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Fredrik Modèen
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Axel Dörfler
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Fredrik Modèen
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Stephan Assmus
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Axel Dörfler
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Fredrik Modèen
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Fredrik Modèen
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Axel Dörfler
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Fredrik Modèen
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Humdinger
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Axel Dörfler
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Axel Dörfler
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Ryan Leavengood
- » [haiku-commits] Re: r34140 - haiku/trunk/src/apps/screenshot - Ryan Leavengood