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 11@ echo off
22set 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
88)
9+ if %argc% == 0 goto documentation
10+ goto parseopts
11+
912:documentation
1013echo Usage: %~nx0 [options] [.exs file] [data]
1114echo .
Original file line number Diff line number Diff line change 11@ echo off
22set 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
88)
9+ if %argc% == 0 goto documentation
10+ goto run
11+
912:documentation
1013echo Usage: %~nx0 [elixir switches] [compiler switches] [.ex files]
1114echo .
You can’t perform that action at this time.
0 commit comments