Skip to content

Bash completion: Does not handle sub-commands with hyphens #780

Open
@jaredgrubb

Description

@jaredgrubb

The bash completion doesn't handle subcommands that have hyphens in them correctly.

ArgumentParser version: 1.5.0 and main
Swift version: N/A

Checklist

  • If possible, I've reproduced the issue using the main branch of this package
  • I've searched for existing GitHub issues

Steps to Reproduce

The unit tests have a subcommand and the generated bash completion doesn't actually work. So the tests already reproduce the issue if the bash completion is loaded.

Expected behavior

Subcommand completion should be correct.

Actual behavior

_base_test_sub-command: command not found

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