From b2e29f1cffc096c612fddf19c46c65522d30d460 Mon Sep 17 00:00:00 2001 From: Mattias Karlsson Date: Mon, 14 Oct 2024 20:09:31 +0200 Subject: [PATCH] (GH-4355) Frosting support Pascal Case Target argument * fixes #4355 --- src/Cake.Core/ExecutionSettings.cs | 1 - src/Cake.Core/Graph/CakeGraph.cs | 2 +- src/Cake.Frosting/Internal/Commands/DefaultCommandSettings.cs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Cake.Core/ExecutionSettings.cs b/src/Cake.Core/ExecutionSettings.cs index e3835d2e39..2cca7d2b8b 100644 --- a/src/Cake.Core/ExecutionSettings.cs +++ b/src/Cake.Core/ExecutionSettings.cs @@ -5,7 +5,6 @@ using System; using System.Collections.Generic; using System.Linq; -using static Cake.Core.Constants; namespace Cake.Core { diff --git a/src/Cake.Core/Graph/CakeGraph.cs b/src/Cake.Core/Graph/CakeGraph.cs index 53d8062999..59fc291f5d 100644 --- a/src/Cake.Core/Graph/CakeGraph.cs +++ b/src/Cake.Core/Graph/CakeGraph.cs @@ -45,7 +45,7 @@ public void Add(string node) { throw new ArgumentNullException(nameof(node)); } - if (_nodes.Any(x => x == node)) + if (Exist(node)) { throw new CakeException("Node has already been added to graph."); } diff --git a/src/Cake.Frosting/Internal/Commands/DefaultCommandSettings.cs b/src/Cake.Frosting/Internal/Commands/DefaultCommandSettings.cs index e9a1892f40..210b29e70f 100644 --- a/src/Cake.Frosting/Internal/Commands/DefaultCommandSettings.cs +++ b/src/Cake.Frosting/Internal/Commands/DefaultCommandSettings.cs @@ -12,7 +12,7 @@ namespace Cake.Frosting.Internal { internal sealed class DefaultCommandSettings : CommandSettings { - [CommandOption("--target|-t ")] + [CommandOption("--target|-t|--Target ")] [DefaultValue("Default")] [Description("Target task to invoke.")] public string[] Targets { get; set; }