Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 28 lines (25 sloc) 0.591 kb
cd25f01 @mbbx6spp Added escript rebar template.
authored
1 #!/usr/bin/env escript
2 %% -*- mode: erlang -*-
45c4d24 @mbbx6spp Comment style updated to conform to coding style.
authored
3 %%%' HEADER
4 %% @author {{author_name}} <{{author_email}}>
5 %% @copyright {{copyright_year}} {{author_name}}
6 %% @doc {{description}}
7 %% @end
cd25f01 @mbbx6spp Added escript rebar template.
authored
8 -export([main/1]).
9 -define(CMD, filename:basename(escript:script_name())).
45c4d24 @mbbx6spp Comment style updated to conform to coding style.
authored
10 %%%.
11 %%%' PUBLIC API
4601a66 @mbbx6spp Convert escript edoc type specs to real type specs
authored
12 -spec main(Args) -> void()
13 when
14 Args :: list(string()).
86c2ab2 @mbbx6spp Added catch-all argument pattern in main/1.
authored
15 main(_)->
cd25f01 @mbbx6spp Added escript rebar template.
authored
16 usage().
17
45c4d24 @mbbx6spp Comment style updated to conform to coding style.
authored
18 %%%.
19 %%%' PRIVATE FUNCTIONS
20 %% @private
4601a66 @mbbx6spp Convert escript edoc type specs to real type specs
authored
21 -spec usage() -> void().
cd25f01 @mbbx6spp Added escript rebar template.
authored
22 usage() ->
2394ef4 @mbbx6spp Added newline to end of usage line.
authored
23 io:format("Usage: ~s ...~n", [?CMD]),
cd25f01 @mbbx6spp Added escript rebar template.
authored
24 halt(1).
45c4d24 @mbbx6spp Comment style updated to conform to coding style.
authored
25
26 %%%.
27 %%% vim: set filetype=erlang tabstop=2 foldmarker=%%%',%%%. foldmethod=marker:
Something went wrong with that request. Please try again.