Skip to content

Commit 0f5fcfb

Browse files
committed
Make default config match usage docs
The usage doc for the `config` flag was misleading. Before it was documented as: ``` --config string config file (default is ./test-server.yaml) ``` but the actual default was an empty string. After the change it is documented as: ``` --config string config file (default "test-server.yaml") ``` and the default is as described.
1 parent 963208c commit 0f5fcfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ func Execute() {
3939
}
4040

4141
func init() {
42-
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is ./test-server.yaml)")
42+
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "test-server.yaml", "config file")
4343
}

0 commit comments

Comments
 (0)