We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc0ea92 commit d8ba75cCopy full SHA for d8ba75c
1 file changed
nattlua/cli/init.lua
@@ -97,6 +97,7 @@ config.commands["check"] = {
97
description = "type check a nattlua or lua script",
98
usage = "nattlua check <file>",
99
options = {
100
+ {name = "parse-only", description = "Only parse the file, do not analyze"},
101
{name = "profile", description = "Run with profiler"},
102
{name = "error-only", description = "Only print errors, not warnings"},
103
{name = "show-severity", description = "Show severity level for warnings"},
@@ -140,7 +141,11 @@ config.commands["check"] = {
140
141
end
142
143
- assert(cmp:Analyze())
144
+ if options["parse-only"] then
145
+ assert(cmp:Parse())
146
+ else
147
+ assert(cmp:Analyze())
148
+ end
149
150
151
if options.profile then prof:Stop() end
0 commit comments