+ (OBCommandLine *) commandLineWithReadArgsTemplate:(OBString *)argsTemplate

Creates a command line string parser using a standard ReadArgs template

- (OBString *) argsTemplate
- (OBArray /* Class */ *) argumentTypes

Decoded argument types, same size as 'arguments' array

- (OBArray /* OBString */ *) arguments

Decoded argument names

- (id) initWithReadArgsTemplate:(OBString *)argsTemplate
- (OBDictionary *) readArgs

Reads arguments from commandline

- (OBDictionary *) readArgs:(OBString *)args

Parses the given input with the args template, will return nil on errors The dictionary key will be the name of the option (in case of multiple aliases, this would be the first name in the template). The object for key may be of OBString OBNumber ( /S, /N, /T ) OBArray<OBString *> ( /M )

- (OBArray *) readArgsArray
- (OBArray *) readArgsArray:(OBString *)args

Similar but returns the results as an array, will place OBNull in place of missing arguments

- (OBArray *) readArgsArrayFromFH:(BPTR)file
- (OBArray *) readArgsArrayFromFH:(BPTR)file encoding:(ULONG)mibenum
- (OBDictionary *) readArgsFromFH:(BPTR)file

Reads and parses a single line out of a file containing DOS parameters. Will use SelectInput() to temporarily replace the Input stream for the DOS process Encoding may be either any single-byte encoding or MIBENUM_UTF_8. Default version assumes MIBENUM_SYSTEM

- (OBDictionary *) readArgsFromFH:(BPTR)file encoding:(ULONG)mibenum
- (OBString *) writeArgs:(OBDictionary *)args

Builds an args string from the provided dictionary

- (OBString *) writeArgsArray:(OBArray*)args

Builds an args string from the provided array - assumes the order of parameters as in 'arguments' array