Skip to content

Commit 038c45f

Browse files
committed
Mention how to load code from stdin in help
1 parent deb241b commit 038c45f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lualib/nelua/configer.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ local function create_parser()
182182
argparser:flag('--print-assembly', 'Print the assembly generated code only')
183183
)
184184
argparser:mutex(
185-
argparser:argument("input", "Input source file"):args("?"),
185+
argparser:argument("input", "Input source file\n\z
186+
Use '-' to read from stdin"):args("?"),
186187
argparser:flag('--config', 'Print config variables only'),
187188
argparser:flag('-v --version', 'Print compiler detailed version'),
188189
argparser:flag('--semver', 'Print compiler semantic version')
@@ -226,7 +227,7 @@ local function create_parser()
226227
argparser:flag('-q --quiet', "Be quiet", defconfig.quiet):hidden(true)
227228
argparser:flag('-j --turbo', "Compile faster by disabling the garbage collector (uses more MEM)"):hidden(true)
228229
argparser:argument("runargs", "Arguments passed to the application\n\z
229-
Use '--' to is passed)")
230+
Use '--' to avoid conflicts with compiler options")
230231
:args("*")
231232
return argparser
232233
end

0 commit comments

Comments
 (0)