Set default value for the arguments option: [] (#308)
This commit is contained in:
parent
9ac123ff56
commit
f672262950
|
@ -182,6 +182,8 @@ get_new_taskid() ->
|
|||
Id -> Id + 1
|
||||
end.
|
||||
|
||||
parse_args_type(_, undefined) ->
|
||||
[];
|
||||
parse_args_type(string, Args) ->
|
||||
lists:map(fun(Arg) when is_binary(Arg) -> binary_to_list(Arg);
|
||||
(Arg) -> Arg
|
||||
|
|
Loading…
Reference in New Issue