Skip to content

Commit

Permalink
Remove bad flag options
Browse files Browse the repository at this point in the history
  • Loading branch information
dev4unet committed Jun 14, 2024
1 parent aba9d95 commit 8d7c90e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cmd/apicall/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 8d7c90e

Please sign in to comment.