From 8d7c90ed1dddc0adaccd03685c16f3351d85dd72 Mon Sep 17 00:00:00 2001 From: dev4unet Date: Fri, 14 Jun 2024 15:48:29 +0900 Subject: [PATCH] Remove bad flag options --- src/cmd/apicall/root.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cmd/apicall/root.go b/src/cmd/apicall/root.go index 705dce6..9313fd2 100644 --- a/src/cmd/apicall/root.go +++ b/src/cmd/apicall/root.go @@ -19,7 +19,8 @@ var configFile string var serviceName string var actionName string -var method string + +// var method string var isInit bool var isListMode bool var isVerbose bool @@ -381,7 +382,7 @@ func init() { apiCmd.PersistentFlags().StringVarP(&serviceName, "service", "s", "", "Service to perform") apiCmd.PersistentFlags().StringVarP(&actionName, "action", "a", "", "Action to perform") - apiCmd.PersistentFlags().StringVarP(&method, "method", "m", "", "HTTP Method") + //apiCmd.PersistentFlags().StringVarP(&method, "method", "m", "", "HTTP Method") apiCmd.PersistentFlags().BoolVarP(&isVerbose, "verbose", "v", false, "Show more detail information") apiCmd.PersistentFlags().StringVarP(&pathParam, "pathParam", "p", "", "Variable path info set \"key1:value1 key2:value2\" for URIs") apiCmd.PersistentFlags().StringVarP(&queryString, "queryString", "q", "", "Use if you have a query string to add to URIs")