Skip to content

Commit

Permalink
Mention how to load code from stdin in help
Browse files Browse the repository at this point in the history
  • Loading branch information
edubart committed Oct 18, 2024
1 parent deb241b commit 038c45f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lualib/nelua/configer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ local function create_parser()
argparser:flag('--print-assembly', 'Print the assembly generated code only')
)
argparser:mutex(
argparser:argument("input", "Input source file"):args("?"),
argparser:argument("input", "Input source file\n\z
Use '-' to read from stdin"):args("?"),
argparser:flag('--config', 'Print config variables only'),
argparser:flag('-v --version', 'Print compiler detailed version'),
argparser:flag('--semver', 'Print compiler semantic version')
Expand Down Expand Up @@ -226,7 +227,7 @@ local function create_parser()
argparser:flag('-q --quiet', "Be quiet", defconfig.quiet):hidden(true)
argparser:flag('-j --turbo', "Compile faster by disabling the garbage collector (uses more MEM)"):hidden(true)
argparser:argument("runargs", "Arguments passed to the application\n\z
Use '--' to is passed)")
Use '--' to avoid conflicts with compiler options")
:args("*")
return argparser
end
Expand Down

0 comments on commit 038c45f

Please sign in to comment.