From 0f5fcfb25441409af2414b8fe69f9abd26ff11c8 Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Wed, 27 Aug 2025 23:10:53 +0200 Subject: [PATCH] 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. --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 2b7b040..12bd8ee 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -39,5 +39,5 @@ func Execute() { } func init() { - rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is ./test-server.yaml)") + rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "test-server.yaml", "config file") }