Fix command arity (#206)

This commit is contained in:
Frederik Carlier
2021-11-10 12:59:07 +01:00
committed by GitHub
parent 887120fcf0
commit 6c7cfe30cf

View File

@@ -52,7 +52,7 @@ namespace Dotnet.Packaging
rootCommand.AddOption(new Option(
new string[] { "-r", "--runtime" },
$"Target runtime of the {outputName}. The target runtime has to be specified in the project file.",
arity: ArgumentArity.ZeroOrOne)
arity: ArgumentArity.ExactlyOne)
{
Name = "runtime",
});
@@ -60,7 +60,7 @@ namespace Dotnet.Packaging
rootCommand.AddOption(new Option(
new string[] { "-f", "--framework" },
$"Target framework of the {outputName}. The target framework has to be specified in the project file.",
arity: ArgumentArity.ZeroOrOne)
arity: ArgumentArity.ExactlyOne)
{
Name = "framework"
});
@@ -68,7 +68,7 @@ namespace Dotnet.Packaging
rootCommand.AddOption(new Option(
new string[] { "-c", "--configuration" },
$"Target configuration of the {outputName}. The default for most projects is 'Debug'.",
arity: ArgumentArity.ZeroOrOne)
arity: ArgumentArity.ExactlyOne)
{
Name = "configuration",
});
@@ -76,7 +76,7 @@ namespace Dotnet.Packaging
rootCommand.AddOption(new Option(
new string[] { "-o", "--output" },
$"The output directory to place built packages in. The default is the output directory of your project.",
arity: ArgumentArity.ZeroOrOne)
arity: ArgumentArity.ExactlyOne)
{
Name = "output-dir",
});
@@ -84,7 +84,7 @@ namespace Dotnet.Packaging
rootCommand.AddOption(new Option(
new string[] { "--version-suffix" },
"Defines the value for the $(VersionSuffix) property in the project.",
arity: ArgumentArity.ZeroOrOne)
arity: ArgumentArity.ExactlyOne)
{
Name = "version-suffix"
});