Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (23 sloc) 713 Bytes
// OptionParser.h
// Created by Allan Odgaard on 2007-09-24.
#import <Cocoa/Cocoa.h>
#import <string>
struct option_t
std::string short_option, long_option;
int argument;
enum type_t { none, string, integer, plist } type;
char *description;
NSDictionary* ParseOptions (NSArray* arguments, option_t const* available, size_t n);
template <size_t N> NSDictionary* ParseOptions (NSArray* arguments, option_t const (&available)[N])
return ParseOptions(arguments, available, N);
NSString *GetOptionList(option_t const *options, size_t optionCount);
template <size_t optionCount> NSString *GetOptionList(option_t const (&options)[optionCount])
return GetOptionList(options, optionCount);
Jump to Line
Something went wrong with that request. Please try again.