Skip to content

Commit

Permalink
Add --not-globals CLI option
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeterv committed Jan 8, 2017
1 parent 17e8242 commit 2d6b9a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/luacheck/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ previously.]])
:argname "<global>"
:action "concat"
:init(nil)
parser:option("--not-globals", "Remove custom and standard globals.")
:args "*"
:count "*"
:argname "<global>"
:action "concat"
:init(nil)
parser:flag("-c --compat", "Equivalent to --std max.")
parser:flag("-d --allow-defined", "Allow defining globals implicitly by setting them.")
parser:flag("-t --allow-defined-top", [[Allow defining globals implicitly by setting them in
Expand Down

0 comments on commit 2d6b9a4

Please sign in to comment.