Simple class for handling command line arguments
Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Criteria.h
Criteria.m
LICENSE
README.md

README.md

Criteria

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.

Usage Example:

#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;
}

If you need me

License

Read LICENSE file for more info.