Skip to content

Commit

Permalink
Update help
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <mattalord@gmail.com>
  • Loading branch information
mattlord committed Oct 10, 2023
1 parent a238655 commit 86d4e4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions go/cmd/vtctldclient/command/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ func getClientForCommand(cmd *cobra.Command) (vtctldclient.VtctldClient, error)
}

func init() {
Root.PersistentFlags().StringVar(&server, "server", "", "VtCtld server to use for the connection (required).")
Root.PersistentFlags().DurationVar(&actionTimeout, "action_timeout", time.Hour, "Timeout to use for the command.")
Root.PersistentFlags().BoolVar(&compactOutput, "compact", false, "Use compact format for otherwise verbose outputs.")
Root.PersistentFlags().StringVar(&server, "server", "", "server to use for the connection (required)")
Root.PersistentFlags().DurationVar(&actionTimeout, "action_timeout", time.Hour, "timeout to use for the command")
Root.PersistentFlags().BoolVar(&compactOutput, "compact", false, "use compact format for otherwise verbose outputs")
vreplcommon.RegisterCommands(Root)
}
5 changes: 3 additions & 2 deletions go/flags/endtoend/vtctldclient.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ Available Commands:
help Help about any command

Flags:
--action_timeout duration timeout for the total command (default 1h0m0s)
--action_timeout duration timeout to use for the command (default 1h0m0s)
--alsologtostderr log to standard error as well as files
--compact use compact format for otherwise verbose outputs
--grpc_auth_static_client_creds string When using grpc_static_auth in the server, this file provides the credentials to use to authenticate with server.
--grpc_compression string Which protocol to use for compressing gRPC. Default: nothing. Supported: snappy
--grpc_enable_tracing Enable gRPC tracing.
Expand All @@ -121,7 +122,7 @@ Flags:
--mysql_server_version string MySQL server version to advertise. (default "8.0.30-Vitess")
--purge_logs_interval duration how often try to remove old logs (default 1h0m0s)
--security_policy string the name of a registered security policy to use for controlling access to URLs - empty means allow all for anyone (built-in policies: deny-all, read-only)
--server string server to use for connection (required)
--server string server to use for the connection (required)
--stderrthreshold severity logs at or above this threshold go to stderr (default 1)
-v, --v Level log level for V logs
--version version for vtctldclient
Expand Down

0 comments on commit 86d4e4e

Please sign in to comment.