Skip to content

Argument 'foo' was not set" after update to 4.1 in Cake Frosting #4374

@devlead

Description

@devlead

Discussed in https://github.com/orgs/cake-build/discussions/4373

Originally posted by pascalberger October 23, 2024
Having the following code in a Cake Frosting project:

var value = context.Argument<string>("foo");

When running Cake with --foo=bar it worked in 4.0, but with 4.1 an Argument 'foo' was not set error is thrown.

See https://github.com/pascalberger/cake-4373 for a repro.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions