File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
set argc = 0
3
- for %%x in (%* ) do set /A argc += 1
4
- if %argc% == 0 (
5
- goto documentation
6
- ) else (
7
- goto parseopts
3
+ for %%A in (%* ) do (
4
+ if " %%A " == " --help " goto documentation
5
+ if " %%A " == " -h " goto documentation
6
+ if " %%A " == " /h " goto documentation
7
+ set /A argc += 1
8
8
)
9
+ if %argc% == 0 goto documentation
10
+ goto parseopts
11
+
9
12
:documentation
10
13
echo Usage: %~nx0 [options] [.exs file] [data]
11
14
echo .
Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
set argc = 0
3
- for %%x in (%* ) do set /A argc += 1
4
- if %argc% == 0 (
5
- goto documentation
6
- ) else (
7
- goto run
3
+ for %%A in (%* ) do (
4
+ if " %%A " == " --help " goto documentation
5
+ if " %%A " == " -h " goto documentation
6
+ if " %%A " == " /h " goto documentation
7
+ set /A argc += 1
8
8
)
9
+ if %argc% == 0 goto documentation
10
+ goto run
11
+
9
12
:documentation
10
13
echo Usage: %~nx0 [elixir switches] [compiler switches] [.ex files]
11
14
echo .
You can’t perform that action at this time.
0 commit comments