From 013d3ee2f0bfd6a4bf4e4b47df4cd9c4ac164416 Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Wed, 10 Nov 2021 11:04:51 +0100 Subject: [PATCH] Fix command arity --- dotnet-rpm/PackagingRunner.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dotnet-rpm/PackagingRunner.cs b/dotnet-rpm/PackagingRunner.cs index aacc8da..9326a91 100644 --- a/dotnet-rpm/PackagingRunner.cs +++ b/dotnet-rpm/PackagingRunner.cs @@ -51,7 +51,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", }); @@ -59,7 +59,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" }); @@ -67,7 +67,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", }); @@ -75,7 +75,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", }); @@ -83,7 +83,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" });