Re: Command-line parsing

2010-07-21 Thread Carter Allen
You might be thinking of DDCLI: http://www.dribin.org/dave/blog/archives/2008/04/29/ddcli/ I've used it before, and when you're writing an ObjC CLI, it does its job perfectly. - Carter Allen On Jul 21, 2010, at 8:54 AM, Fritz Anderson wrote: > I'm writing a Foundation tool that will take both

Re: Command-line parsing

2010-07-21 Thread Daniel DeCovnick
I for one had no idea that existed. -Daniel On Jul 21, 2010, at 8:03 AM, Alastair Houghton wrote: On 21 Jul 2010, at 15:54, Fritz Anderson wrote: I'm writing a Foundation tool that will take both options and pathname arguments. If you use NSUserDefaults, you can handle key-value options (

Re: Command-line parsing

2010-07-21 Thread Alastair Houghton
On 21 Jul 2010, at 15:54, Fritz Anderson wrote: > I'm writing a Foundation tool that will take both options and pathname > arguments. > > If you use NSUserDefaults, you can handle key-value options (-threshold 17) > pretty easily, but this has limitations. I don't see how it can be graceful >

Command-line parsing

2010-07-21 Thread Fritz Anderson
I'm writing a Foundation tool that will take both options and pathname arguments. If you use NSUserDefaults, you can handle key-value options (-threshold 17) pretty easily, but this has limitations. I don't see how it can be graceful for * Two-hyphen options (chatty --verbose). * Non-value opt