Skip to content

Commit 17bd78b

Browse files
Updated text in usage messages.
1 parent 9e8b583 commit 17bd78b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func init() {
112112

113113
// Add a persistent flag for the timeformat option
114114
rootCmd.Flags().StringP("timeformat", "t", defaultTimeFormat,
115-
"Time format, 12 or 24 hour, or most pre-defined Go time formats\nSee https://pkg.go.dev/time#pkg-constants for details")
115+
"Time format - See the README file for possible values")
116116
if err := viper.BindPFlag("timeformat", rootCmd.Flags().Lookup("timeformat")); err != nil {
117117
log.Printf("Error binding flag 'timeformat': %v", err)
118118
}
@@ -130,7 +130,7 @@ func init() {
130130
}
131131

132132
// Add a persistent flag for the logFile option
133-
rootCmd.Flags().StringP("logfile", "l", defaultFileName, "Path to the log file, including the file name and extension")
133+
rootCmd.Flags().StringP("logfile", "l", "", "Absolute path to the log file (default is 'bootlog.txt' in the same folder as bootlog.exe)")
134134
if err := viper.BindPFlag("logfile", rootCmd.Flags().Lookup("logfile")); err != nil {
135135
log.Printf("Error binding flag 'logfile': %v", err)
136136
}

0 commit comments

Comments
 (0)