Skip to content

Commit d04d627

Browse files
committed
Allow rule files to be accepted as an argument
1 parent 5e7943a commit d04d627

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/commands/rules.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ func (r *RuleCommand) Register(app *kingpin.Application) {
140140
).StringVar(&r.RuleFilesPath)
141141

142142
// Prepare Command
143+
prepareCmd.Arg("rule-files", "The rule files to check.").Required().ExistingFilesVar(&r.RuleFilesList)
143144
prepareCmd.Flag("rule-files", "The rule files to check. Flag can be reused to load multiple files.").StringVar(&r.RuleFiles)
144145
prepareCmd.Flag(
145146
"rule-dirs",

0 commit comments

Comments
 (0)