Skip to content

Commit

Permalink
Merge pull request cake-build#4357 from devlead/feature/cake-buildgh-…
Browse files Browse the repository at this point in the history
…4355

GH4355: Frosting support Pascal Case Target argument
  • Loading branch information
devlead authored Oct 14, 2024
2 parents 1bb0807 + b2e29f1 commit 4cb1d02
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Cake.Core/ExecutionSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using static Cake.Core.Constants;

namespace Cake.Core
{
Expand Down
2 changes: 1 addition & 1 deletion src/Cake.Core/Graph/CakeGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Cake.Frosting.Internal
{
internal sealed class DefaultCommandSettings : CommandSettings
{
[CommandOption("--target|-t <TARGET>")]
[CommandOption("--target|-t|--Target <TARGET>")]
[DefaultValue("Default")]
[Description("Target task to invoke.")]
public string[] Targets { get; set; }
Expand Down

0 comments on commit 4cb1d02

Please sign in to comment.