Skip to content

mazerlodge/ArgParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

ArgParser

Weekly Source Code #201804

Home project for reusable argument parser class.

ArgParser methods:

  • (id) initWithArgs: (NSArray *) args; // sets member var w/ argsArray // not needed for C version

  • (bool) isInArgs: (NSString *) name withAValue: (bool) bWithValue; // returns true/false.

  • (NSString *) getArgValue: (NSString *) name; // returns val for arg specified or "NOT_SET"

  • (bool) doesArg: (NSString *) name haveValue: (NSString *) value; // returns true/false if argName has value specified.

Test cases: isInArgs, bWithValue, test with, without, and last param with value

Test Params
-ANoValue -BWithValue 24 -CNoValue -DLastWithValue 42

About

Weekly Source Code #201804

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published