Skip to content

Commit b784649

Browse files
author
Roberto Sora
committed
fix help strings
1 parent 8eb3800 commit b784649

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/cli.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func createCliCommandTree(cmd *cobra.Command) {
8080
cmd.AddCommand(version.NewCommand())
8181

8282
cmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "Print the logs on the standard output.")
83-
cmd.PersistentFlags().StringVar(&globals.LogLevel, "log-level", defaultLogLevel, "Messages with this level and above will be logged (default: warn).")
83+
cmd.PersistentFlags().StringVar(&globals.LogLevel, "log-level", defaultLogLevel, "Messages with this level and above will be logged.")
8484
cmd.PersistentFlags().StringVar(&logFile, "log-file", "", "Path to the file where logs will be written.")
8585
cmd.PersistentFlags().StringVar(&logFormat, "log-format", "text", "The output format for the logs, can be [text|json].")
8686
cmd.PersistentFlags().StringVar(&globals.OutputFormat, "format", "text", "The output format, can be [text|json].")

cli/daemon/daemon.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const (
4141
func NewCommand() *cobra.Command {
4242
return &cobra.Command{
4343
Use: "daemon",
44-
Short: "Run as a daemon",
44+
Short: fmt.Sprintf("Run as a daemon on port %s", port),
4545
Long: "Running as a daemon the initialization of cores and libraries is done only once.",
4646
Example: " " + os.Args[0] + " daemon",
4747
Args: cobra.NoArgs,

0 commit comments

Comments
 (0)