diff --git a/cmd/root.go b/cmd/root.go index ab0f4da..cf0e11d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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 @@ -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 }, @@ -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") }