Skip to content

Commit

Permalink
fix: Accept CLI parameters containing "=" char
Browse files Browse the repository at this point in the history
  • Loading branch information
marienfressinaud committed Apr 7, 2021
1 parent 238d8ed commit d5a4ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if (isset($options['p'])) {
die("Parameters must be in the form key=value ({$parameter}).\n");
}

list($key, $value) = explode('=', $parameter);
list($key, $value) = explode('=', $parameter, 2);
$parameters[$key] = $value;
}
}
Expand Down

0 comments on commit d5a4ab9

Please sign in to comment.