From d2137eade13a7861eebcb42126f6510e8869e025 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Tue, 24 Jul 2012 23:45:44 +0530 Subject: [PATCH] Replace `-` to `_` in keyword arguments to -bundle. --- antigen.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/antigen.zsh b/antigen.zsh index 1cca2bc..6b49bfd 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -33,7 +33,8 @@ antigen-bundle () { # Set spec values from keyword arguments, if any. The remaining arguments # are all assumed to be keyword arguments. while [[ $1 == --* ]]; do - local arg="${1#--}" + # Remove the `--` at the start and replace the rest of `-`'s to `_`'s. + local arg="${${1#--}//-/_}" if [[ $arg != *=* ]]; then arg="$arg=true" -- 2.0.0