completion/getopt: `shfmt`

pull/1985/head^2
John D Pell 2022-01-16 11:28:59 -08:00
parent 8cdd226cf3
commit 9d4b23b992
1 changed files with 29 additions and 27 deletions

View File

@ -1,4 +1,6 @@
__getopt() {
# shellcheck shell=bash
function _getopt() {
local OPTIONS=('-a' '--alternative'
'-h' '--help'
'-l' '--longoptions'
@ -29,4 +31,4 @@ __getopt() {
esac
}
complete -F __getopt getopt
complete -F _getopt getopt