Skip to content

Commit 01d04c0

Browse files
committed
feat: CLI flag
1 parent e16db4e commit 01d04c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/commands/flagsets.go

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ func setupRunFlagSet(v *viper.Viper, fs *pflag.FlagSet) {
6262
func setupOutputFlagSet(v *viper.Viper, fs *pflag.FlagSet) {
6363
internal.AddFlagAndBind(v, fs, fs.String, "path-prefix", "output.path-prefix", "",
6464
color.GreenString("Path prefix to add to output"))
65+
internal.AddFlagAndBind(v, fs, fs.String, "path-mode", "output.path-mode", "",
66+
color.GreenString("Path mode to use"))
6567
internal.AddFlagAndBind(v, fs, fs.Bool, "show-stats", "output.show-stats", true, color.GreenString("Show statistics per linter"))
6668

6769
setupOutputFormatsFlagSet(v, fs)

0 commit comments

Comments
 (0)