Commit b43a3cf1f11c5b87a1bb3a36fc1381d8cd095adf

Authored by Shrikant Sharat
1 parent ec9febf8cf

Keyword arguments no longer *need* to have an `=`.

Keyword arguments of the syntax `--arg` are supported, not just `--arg=val`.

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -23,7 +23,7 @@ antigen-bundle () {
23 23 local position_args
24 24 position_args=(url loc)
25 25 local i=1
26   - while ! [[ -z $1 || $1 == --*=* ]]; do
  26 + while ! [[ -z $1 || $1 == --* ]]; do
27 27 local arg_name="${position_args[$i]}"
28 28 local arg_value="$1"
29 29 eval "local $arg_name='$arg_value'"