Criteria is a library for creating objective-c command line tools. A very simple, callback approach to handling arguments and values. Just include the .h file, in the main or wherever. Add some options and throw a callback in there that will be executed when Criteria hits the defined flags.
#import "Criteria.h"
int main(int argc, const char * argv[])
{
@autoreleasepool
{
[Criteria addOption:@[@"v", @"version"] callback:^(NSString *value) {
printf("\nVersion: 1.0.0\n");
}];
[Criteria run];
}
return 0;
}
Read LICENSE file for more info.