您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

15 行
503 B

#!/usr/bin/env escript
main(["basic_app"]) ->
case filelib:is_file("basic_app.zip") of
true -> zip:unzip("basic_app.zip"), halt(0);
false -> io:format("unable to locate basic_app.zip~n", []), halt(1)
end;
main(["multi_app"]) ->
case filelib:is_file("multi_app.zip") of
true -> zip:unzip("multi_app.zip"), halt(0);
false -> io:format("unable to locate multi_app.zip~n", []), halt(1)
end,
halt(0);
main(_) ->
io:format("usage: inflate basic_app | multi_app~n", []), halt(1).