Permalink
Browse files

verx: accept "=" in cli options

  • Loading branch information...
msantos committed Dec 20, 2012
1 parent a9a17f2 commit 214279eafa33bb3477f5c34440f77efb83eeb3f1
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/verx
View
@@ -392,7 +392,8 @@ connect(Opt0) ->
{ok, Ref}.
getopt(Opts) ->
- getopt(Opts, []).
+ Opts1 = lists:flatmap(fun(X)-> string:tokens(X, "=") end, Opts),
+ getopt(Opts1, []).
getopt([], Acc) ->
lists:reverse(Acc);
getopt(["--" ++ Key, "--" ++ _ = Val | Rest], Acc) ->

0 comments on commit 214279e

Please sign in to comment.