Commit 08e10a70 authored by rinpatch's avatar rinpatch

Rename def to defval

parent 1d11c4cf
......@@ -4,13 +4,13 @@ def start_pleroma do
Mix.Task.run("app.start")
end
def get_option(options, opt, prompt, def \\ nil, defname \\ nil) do
def get_option(options, opt, prompt, defval \\ nil, defname \\ nil) do
Keyword.get(options, opt) ||
case Mix.shell().prompt("#{prompt} [#{defname || def}]") do
case Mix.shell().prompt("#{prompt} [#{defname || defval}]") do
"\n" ->
case def do
nil -> get_option(options, opt, prompt, def)
def -> def
case defval do
nil -> get_option(options, opt, prompt, defval)
defval -> defval
end
opt ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment