Command Line Parser
object CommandLineParser
Methods for parsing command lines and running commands manually.
Functions
Link copied to clipboard
Finalize a command invocation, converting and setting the values for all options and other parameters. This function does not finalizeEagerOptions or run the command.
Link copied to clipboard
Finalize eager options for a command invocation, running them if they were invoked.
Link copied to clipboard
Call parseAndRun on the given command. If an error is thrown, exit the process with the error's status code.
Link copied to clipboard
Call parseAndRun on the given command. If an error is thrown, exit the process with the error's status code.
Link copied to clipboard
Parse a command line and return the result.
Link copied to clipboard
inline fun <T : BaseCliktCommand<T>> parseAndRun(command: T, argv: List<String>, runCommand: (T) -> Unit): CommandLineParseResult<T>
A shortcut for calling run(parse(command, argv).invocation, runCommand)