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
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
The bash completion doesn't handle subcommands that have hyphens in them correctly.
ArgumentParser version:
1.5.0and mainSwift version: N/A
Checklist
mainbranch of this packageSteps 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