Set default value for the arguments option: [] (#308)

This commit is contained in:
Badlop 2022-04-12 11:32:45 +02:00
parent 9ac123ff56
commit f672262950
1 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,8 @@ get_new_taskid() ->
Id -> Id + 1 Id -> Id + 1
end. end.
parse_args_type(_, undefined) ->
[];
parse_args_type(string, Args) -> parse_args_type(string, Args) ->
lists:map(fun(Arg) when is_binary(Arg) -> binary_to_list(Arg); lists:map(fun(Arg) when is_binary(Arg) -> binary_to_list(Arg);
(Arg) -> Arg (Arg) -> Arg