Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InvalidCommandLineArgumentNameException"/> class with a specified error message.
 /// </summary>
 /// <param name="item">The duplicate item that was encountered.</param>
 public InvalidCommandLineArgumentNameException(CommandLineArgument item)
     : base(string.Format("The argument short name '{0}' or long name '{1}' is invalid. Arguments cannot contain whitespace.", item.ShortName, item.LongName))
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MissingCommandLineArgumentValueException"/> class with a specified error message.
 /// </summary>
 /// <param name="item">The duplicate item that was encountered.</param>
 public MissingCommandLineArgumentValueException(CommandLineArgument item)
     : base(string.Format("A value for the command-line argument with the short name '{0}' or long name '{1}' was omitted.", item.ShortName, item.LongName))
 {
 }