mirror of
https://github.com/zplug/zplug
synced 2025-08-28 08:41:42 +02:00
9 lines
200 B
Bash
9 lines
200 B
Bash
#!/bin/zsh
|
|
|
|
__getopts() {
|
|
printf -- "%s\n" $argv | sed -E '
|
|
s/^-([A-Za-z]+)/- \1 /
|
|
s/^--([A-Za-z0-9_-]+)(!?)=?(.*)/-- \1 \3 \2 /' \
|
|
| awk -f "$ZPLUG_ROOT/misc/share/getopts.awk"
|
|
}
|