Skip to content

Completion provider should be able to detect caller is help usage doc  #2185

@AArnott

Description

@AArnott

When using the AddCompletions method to add runtime-determined completions for an argument, I don't want those completions to appear in the help doc. This is usually because the completion options are so many, the usage doc just gets long with options that don't need to be enumerated there.

An example of how wordy it can be is even demonstrated in the published docs.

There appears to be no exposed property to detect that my callback is invoked merely to print the usage doc.
Can a property be added to CompletionContext to indicate whether it's for help docs or actual completions?
Or just allow a property to turn off completions being used to replace an argument name in the usage doc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions