Skip to content

Commit c67af6c

Browse files
authored
rules check does not require an argument (#57)
You can pass in files and directories of rules via flags.
1 parent 2ef26ce commit c67af6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/commands/rules.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ func (r *RuleCommand) Register(app *kingpin.Application) {
173173
).StringVar(&r.RuleFilesPath)
174174
lintCmd.Flag("dry-run", "Performs a trial run that doesn't make any changes and (mostly) produces the same outpupt as a real run.").Short('n').BoolVar(&r.LintDryRun)
175175

176-
checkCmd.Arg("rule-files", "The rule files to check.").Required().ExistingFilesVar(&r.RuleFilesList)
176+
// Check Command
177+
checkCmd.Arg("rule-files", "The rule files to check.").ExistingFilesVar(&r.RuleFilesList)
177178
checkCmd.Flag("rule-files", "The rule files to check. Flag can be reused to load multiple files.").StringVar(&r.RuleFiles)
178179
checkCmd.Flag(
179180
"rule-dirs",

0 commit comments

Comments
 (0)