From 97224c2e744139057c628bcde0f652107ea41ae4 Mon Sep 17 00:00:00 2001 From: HAHWUL Date: Tue, 10 Dec 2024 00:27:12 +0900 Subject: [PATCH] Enhance command-line flag descriptions for server command with examples Signed-off-by: HAHWUL --- cmd/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/server.go b/cmd/server.go index e9097ad0..301343bc 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -27,6 +27,6 @@ func runServerCmd(cmd *cobra.Command, args []string) { func init() { rootCmd.AddCommand(serverCmd) - serverCmd.Flags().IntVar(&port, "port", 6664, "Bind Port") - serverCmd.Flags().StringVar(&host, "host", "0.0.0.0", "Bind address") + serverCmd.Flags().IntVar(&port, "port", 6664, "Specify the port to bind the server to. Example: --port 6664") + serverCmd.Flags().StringVar(&host, "host", "0.0.0.0", "Specify the address to bind the server to. Example: --host '0.0.0.0'") }