parser.option(DAEMON).hasDescription("Uses the Gradle daemon to run the build. Starts the daemon if not running [experimental].");
parser.option(NO_DAEMON).hasDescription("Do not use the Gradle daemon to run the build [experimental].");
parser.option(STOP).hasDescription("Stops the Gradle daemon if it is running [experimental].");
LoggingConfiguration loggingConfiguration = new LoggingConfiguration();
ServiceRegistry loggingServices = createLoggingServices();
Action<ExecutionListener> action;
try {
ParsedCommandLine commandLine = parser.parse(args);
CommandLineConverter<LoggingConfiguration> loggingConfigurationConverter = loggingServices.get(CommandLineConverter.class);
loggingConfiguration = loggingConfigurationConverter.convert(commandLine);
action = createAction(parser, commandLine, startParameterConverter, loggingServices);
} catch (CommandLineArgumentException e) {
action = new CommandLineParseFailureAction(parser, e);
}