/// <summary>
 /// Initializes a new instance of the <see cref="MissingRequiredCommandLineArgumentException"/> class with a specified error message.
 /// </summary>
 /// <param name="item">The duplicate item that was encountered.</param>
 public MissingRequiredCommandLineArgumentException(CommandLineArgument item)
     : base(string.Format("A required command-line argument with the short name '{0}' or long name '{1}' was omitted.", item.ShortName, item.LongName))
 {
 }
コード例 #2
0
 /// <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))
 {
 }