The path to the directory containing the command files.
The command string to resolve a command file for.
Optional
parseA function to parse the command string and options. Used to determine if the command string contains any options and to remove them from the remaining command string.
Options for the
resolveCommand
function.