Two versions of the completion function are provided:
1. Uses bash-completion@2, which is the community standard for Bash
completions; version >= 2.12 offers a more user-friendly experience.
2. Uses only bash built-in syntax and completes options only.