Skip to content

Commit 39234f8

Browse files
committed
Fix parse_args! short-aliases
1 parent 3935ec6 commit 39234f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/command_line.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ defmodule ElixirScript.CommandLine do
4242
{parsed, _remaining_args} =
4343
OptionParser.parse!(args,
4444
strict: [script: :string, debug: :boolean, help: :boolean],
45-
aliases: [debug: :d, help: :h, script: :s]
45+
aliases: [d: :debug, h: :help, s: :script]
4646
)
4747

4848
debug? = Keyword.get(parsed, :debug, System.get_env("INPUT_DEBUG") == "true")
@@ -62,9 +62,9 @@ defmodule ElixirScript.CommandLine do
6262
script [OPTIONS]
6363
6464
Options:
65-
--script,-s Specifies the script to run [INPUT_SCRIPT]
66-
--debug, -d Enables debug mode [INPUT_DEBUG]
67-
--help, -h Show this help message and exit
65+
--script, -s Specifies the script to run [INPUT_SCRIPT]
66+
--debug, -d Enables debug mode [INPUT_DEBUG]
67+
--help, -h Show this help message and exit
6868
6969
Example:
7070
script --script "IO.puts('Hello, world!')"

0 commit comments

Comments
 (0)