This project has moved. For the latest updates, please go here.

MGR.CommandLineParser.Extensibility.IErrorMessageLocalizer Reference

This interface defines several error message used by the parser during the parsing process.

Properties

  • string InvalidOptionCommandFormat { get; } : Gets the error message shown when the command contains an invalid option. In the format, {0} represents the command name and {1} represents the invalid option.
  • string MissingOptionValueFormat { get; } : Gets the error message shown when an value's option is missing. In the format, {0} represents the command name and {1} represents the invalid option.
  • string InvalidConverterFormat { get; } : Gets the error message shown when an invalid converter is assigned to an option. In the format, {0} represents the option type and {1} represents the converter's target type.

Default implementation

In the default implementation, the messages are :
  • InvalidOptionCommandFormat : "There is no option '{1}' for the command '{0}'"
  • MissingOptionValueFormat : "You should specified a value for the option '{1}' of the command '{0}'"
  • InvalidConverterFormat : "The specified converter is not valid : target type is '{1}' and option type is '{0}'"

Last edited Apr 20, 2012 at 12:19 PM by mgrosperrin, version 2