Skip to content

Questions about undocumented Option.Action vs Command.SetAction #2777

Description

@joshuapetryk

Hello - I am trying to familiarize myself with this library and I noticed Option.Action https://github.com/dotnet/command-line-api/blob/main/src/System.CommandLine/Option.cs#L131 but it is not documented anywhere (as far as I can tell) in the MSDN docs here: https://learn.microsoft.com/en-us/dotnet/standard/commandline/

Is this feature deprecated? If not - are there examples anywhere of how it can/should be used?

I find it confusing when compared to the well documented Command.SetAction() examples - are these two action delegate systems at odds or complimentary?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions