Fix build
This commit is contained in:
parent
1b8daa6ba3
commit
7c6dd4977b
3 changed files with 11 additions and 5 deletions
|
@ -45,13 +45,13 @@ namespace Microsoft.DotNet.Cli.CommandLine
|
|||
}
|
||||
else
|
||||
{
|
||||
throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
|
||||
throw new ArgumentException(String.Format(LocalizableStrings.InvalidTemplateError, nameof(template)));
|
||||
}
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(LongName) && string.IsNullOrEmpty(ShortName) && string.IsNullOrEmpty(SymbolName))
|
||||
{
|
||||
throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
|
||||
throw new ArgumentException(LocalizableStrings.InvalidTemplateError, nameof(template));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,6 +5,6 @@ namespace Microsoft.DotNet.Cli.CommandLine
|
|||
{
|
||||
internal class HelpMessageStrings
|
||||
{
|
||||
internal const string MSBuildAdditionalArgsHelpText = "Any extra options that should be passed to MSBuild. See 'dotnet msbuild -h' for available options.";
|
||||
internal const string MSBuildAdditionalArgsHelpText = LocalizableStrings.MSBuildAdditionalArgsHelpText;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,6 +18,8 @@ namespace Microsoft.DotNet.Cli.CommandLine
|
|||
|
||||
public const string UsageHeader = "Usage:";
|
||||
|
||||
public const string UsageItemWithoutArgs = " {0}";
|
||||
|
||||
public const string UsageItemWithArgs = " {0} {1}";
|
||||
|
||||
public const string UsageArgumentsToken = " [arguments]";
|
||||
|
@ -42,14 +44,18 @@ namespace Microsoft.DotNet.Cli.CommandLine
|
|||
|
||||
public const string UsageCommandArgs = " [args]";
|
||||
|
||||
public const string UsageCommandAdditionalArgs = " [[--] <arg>...]]";
|
||||
public const string UsageCommandAdditionalArgs = " [[--] <additional arguments>...]]";
|
||||
|
||||
public const string UsageCommandsAdditionalArgsHeader = "Args:";
|
||||
public const string UsageCommandsAdditionalArgsHeader = "Additional Arguments:";
|
||||
|
||||
public const string UsageCommandsAdditionalArgsItem = " {0}";
|
||||
|
||||
public const string CommandItem = " {0}";
|
||||
|
||||
public const string ShortVersionTemplate = "{0} {1}";
|
||||
|
||||
public const string InvalidTemplateError = "Invalid template pattern '{0}'";
|
||||
|
||||
public const string MSBuildAdditionalArgsHelpText = "Any extra options that should be passed to MSBuild. See 'dotnet msbuild -h' for available options.";
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue