Skip to content

[BUG?] Reused arguments are considered optional #1748

Closed
@iBicha

Description

@iBicha

I see in the help builder that an argument used in multiple commands is flagged as optional in usage help

bool IsOptional(Argument argument) =>

            bool IsOptional(Argument argument) =>
                IsMultiParented(argument) ||
                argument.Arity.MinimumNumberOfValues == 0;

Is there a reason for this? We reuse arguments when it makes sense between commands, and they are still required.
I believe this is a bug unless I'm missing something

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions