Skip to content

AutoComplete.bash generates duplicate function names for same paramLabel #2501

@btw04

Description

@btw04

This issue is similar to #2498. For a command that has two options with the same paramLabel:

    public enum ECategory {
        ALL,
        INFO,
        DEBUG
    }

    @Option(names = "--debug", paramLabel = "CATEGORY")
    ECategory debugCategory;

    @Option(names = "--trace", paramLabel = "CATEGORY")
    ECategory traceCategory;

The generated auto complete script generates two functions for the options, but uses the paramLabel as a function name for both, resulting in a duplicate function name.

  local CATEGORY_option_args=("ALL" "INFO", "DEBUG") # --debug values
  local CATEGORY_option_args=("ALL" "INFO", "DEBUG") # --trace values

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions