Skip to content

Commit

Permalink
:p: Rename rootExtract to rootExtractMode
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnjack committed Nov 22, 2020
1 parent 8ca040c commit a1be74c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var rootLimit int
var rootInclude []string
var rootExclude []string
var rootVersion bool
var rootExtract bool
var rootExtractMode bool

// Version is the version of the application calculated with monova
var Version string
Expand Down Expand Up @@ -43,7 +43,7 @@ var rootCmd = &cobra.Command{
buffer := make([]byte, 0, 64*1024)
scanner.Buffer(buffer, 1024*1024)

processData(scanner, &args, rootLimit, tailRe, includeRe, excludeRe, rootExtract)
processData(scanner, &args, rootLimit, tailRe, includeRe, excludeRe, rootExtractMode)

return nil
},
Expand All @@ -67,5 +67,5 @@ func init() {
&rootExclude, "exclude", "e", rootExclude, "exclude from output lines which match provided patterns",
)
rootCmd.PersistentFlags().BoolVar(&rootVersion, "version", false, "print version and exit")
rootCmd.PersistentFlags().BoolVarP(&rootExtract, "extract", "x", false, "extract matched strings instead of highlighting them")
rootCmd.PersistentFlags().BoolVarP(&rootExtractMode, "extract", "x", false, "extract matched strings instead of highlighting them")
}

0 comments on commit a1be74c

Please sign in to comment.