Commit d2137eade13a7861eebcb42126f6510e8869e025
1 parent
3635aa19e8
Replace `-` to `_` in keyword arguments to -bundle.
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
antigen.zsh
| ... | ... | @@ -33,7 +33,8 @@ antigen-bundle () { |
| 33 | 33 | # Set spec values from keyword arguments, if any. The remaining arguments |
| 34 | 34 | # are all assumed to be keyword arguments. |
| 35 | 35 | while [[ $1 == --* ]]; do |
| 36 | - local arg="${1#--}" | |
| 36 | + # Remove the `--` at the start and replace the rest of `-`'s to `_`'s. | |
| 37 | + local arg="${${1#--}//-/_}" | |
| 37 | 38 | |
| 38 | 39 | if [[ $arg != *=* ]]; then |
| 39 | 40 | arg="$arg=true" |