protected override void OnUnhandledCommandLineArgument(object sender, CommandLineArgumentEventArgs e) { Console.WriteLine($"Unknown command line argument '{e.Argument.Name}' at index {e.Argument.Index}.", ConsoleColor.Yellow); base.OnUnhandledCommandLineArgument(sender, e); }
/// <summary> /// Called when a command line argument could not be handled (e.g when an argument was misspelled, and therefor could not be mapped to a property in the arguments class). The /// default behavior is to do nothing. This means that it is ignored. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="CommandLineArgumentEventArgs"/> instance containing the event data.</param> protected virtual void OnUnhandledCommandLineArgument(object sender, CommandLineArgumentEventArgs e) { }