File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- if [ $# -eq 0 ]; then
2
+ if [ $# -eq 0 ] || [ $1 = " --help " ] || [ $1 = " -h " ] ; then
3
3
echo " Usage: ` basename $0 ` [options] [.exs file] [data]
4
4
5
- -v Prints version and exit
5
+ -v Prints version
6
6
-e \" command\" Evaluates the given command (*)
7
7
-r \" file\" Requires the given files/patterns (*)
8
8
-S \" script\" Finds and executes the given script (*)
@@ -13,7 +13,6 @@ if [ $# -eq 0 ]; then
13
13
--erl \" switches\" Switches to be passed down to erlang (*)
14
14
--name \" name\" Makes and assigns a name to the distributed node
15
15
--sname \" name\" Makes and assigns a short name to the distributed node
16
- --remsh \" name\" Connects to a node using a remote shell (with iex)
17
16
--detached Starts the Erlang VM detached from console
18
17
--no-halt Does not halt the Erlang VM after execution
19
18
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ if [ $# -gt 0 ] && ([ $1 = " --help" ] || [ $1 = " -h" ]); then
3
+ echo " Usage: ` basename $0 ` [options] [.exs file] [data]
4
+
5
+ -v Prints version
6
+ -e \" command\" Evaluates the given command (*)
7
+ -r \" file\" Requires the given files/patterns (*)
8
+ -S \" script\" Finds and executes the given script (*)
9
+ -pr \" file\" Requires the given files/patterns in parallel (*)
10
+ -pa \" path\" Prepends the given path to Erlang code path (*)
11
+ -pz \" path\" Appends the given path to Erlang code path (*)
12
+ --app \" app\" Start the given app and its dependencies (*)
13
+ --erl \" switches\" Switches to be passed down to erlang (*)
14
+ --name \" name\" Makes and assigns a name to the distributed node
15
+ --sname \" name\" Makes and assigns a short name to the distributed node
16
+ --remsh \" name\" Connects to a node using a remote shell
17
+
18
+ ** Options marked with (*) can be given more than once
19
+ ** Options given after the .exs file or -- are passed down to the executed code
20
+ ** Options can be passed to the erlang runtime using ELIXIR_ERL_OPTS or --erl" >&2
21
+ exit 1
22
+ fi
23
+
2
24
readlink_f () {
3
25
cd " $( dirname " $1 " ) " > /dev/null
4
26
local filename=" $( basename " $1 " ) "
You can’t perform that action at this time.
0 commit comments