From b4ef77a93daf516da69534641d34c47e0bb79f8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Rudowicz?= Date: Thu, 8 Feb 2024 22:09:31 +0100 Subject: [PATCH] Change command line args from _ to - --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index c9d28fb..374239b 100644 --- a/main.go +++ b/main.go @@ -13,13 +13,13 @@ import ( ) func main() { - satel_api_addr := flag.String("satel_addr", "", "Address that should be used to connect to the SATEL device") - satel_api_port := flag.String("satel_port", "7094", "Port that should be used to connect to the SATEL device") - chat_id_raw := flag.String("tg_chat_id", "", "Telegram Chat ID where to send updates. Use \",\" to specify multiple IDs.") + satel_api_addr := flag.String("satel-addr", "", "Address that should be used to connect to the SATEL device") + satel_api_port := flag.String("satel-port", "7094", "Port that should be used to connect to the SATEL device") + chat_id_raw := flag.String("tg-chat-id", "", "Telegram Chat ID where to send updates. Use \",\" to specify multiple IDs.") flag.Parse() if len(*satel_api_addr) == 0 || len(*satel_api_port) == 0 || len(*chat_id_raw) == 0 { - fmt.Println("Use --satel_addr=ADDR, --satel_port=PORT and --tg_chat_id=CHAT_ID command line flags to continue.") + fmt.Println("Use --satel-addr=ADDR, --satel-port=PORT and --tg-chat-id=CHAT_ID command line flags to continue.") os.Exit(1) } chat_ids_strings := strings.Split(*chat_id_raw, ",")