standardUsageExceptionHandler function
UsageException?
standardUsageExceptionHandler(
- UsageException exception,
- UsageOutputHandler usageOutput, {
- required CommandDefinition<
OptionDefinition> ? fromCommand,
Implementation
UsageException? standardUsageExceptionHandler(
final UsageException exception,
final UsageOutputHandler usageOutput, {
required final CommandDefinition? fromCommand,
}) {
const handler = StandardUsageExceptionHandler();
return handler.onUsageException(
exception,
usageOutput,
fromCommand: fromCommand,
);
}