Skip to content

Commit c044007

Browse files
committed
Documentation improved
1 parent 5f09ff1 commit c044007

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

get-elixir.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ DEST_DIR=""
2525
short_help() {
2626
echo "${COMMAND}: missing arguments.
2727
28-
Usage: ${COMMAND} ACTION PACKAGE_TYPE [VERSION_NUMBER] [DEST_DIR]
28+
Usage: ${COMMAND} (unpack | download) (source | precompiled) [<VERSION_NUMBER> | latest] [<DEST_DIR>]
2929
3030
Example:
3131
${COMMAND} unpack source
3232
33-
Try \`${COMMAND} help\` for more information."
33+
Try \`${COMMAND} --help\` for more information."
3434
}
3535

3636
help() {
@@ -45,8 +45,6 @@ help() {
4545
Actions:
4646
download Downloads the package
4747
unpack Downloads the package and unpacks it
48-
version Prints version
49-
help Prints help menu
5048
5149
Package Types:
5250
source Source files
@@ -60,6 +58,10 @@ help() {
6058
Destination Dir:
6159
Where you want to unpack Elixir. Default value: '${DEFAULT_DEST_DIR}'.
6260
61+
Options:
62+
--version Prints version
63+
--help Prints help menu
64+
6365
Usage Examples:
6466
\$ ${COMMAND} unpack source
6567
\$ ${COMMAND} unpack source 1.0.5

0 commit comments

Comments
 (0)