standardUsageExceptionHandler function

UsageException? standardUsageExceptionHandler(
  1. UsageException exception,
  2. UsageOutputHandler usageOutput, {
  3. 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,
  );
}