CommandLineInterface.parseAndExecute

Parses the given args, and then executes the appropriate command (if one was found).

Notes: If an exception is thrown, the error message is displayed on screen (as well as the stack trace, for non-release builds) and then -1 is returned.

  1. int parseAndExecute(string[] args, IgnoreFirstArg ignoreFirst)
  2. int parseAndExecute(ArgPullParser args)
    class CommandLineInterface(Modules...)
    final
    int
    parseAndExecute

Parameters

args ArgPullParser

The args to parse.

Return Value

Type: int

The status code returned by the command, or -1 if an exception is thrown.

See Also

The documentation for ArgPullParser to understand the format for args.

Meta