fix: Require an argument for speedtest (#3946)

This commit is contained in:
Kyle Carberry
2022-09-07 16:10:17 -05:00
committed by GitHub
parent 2a085d1936
commit f510f01768

View File

@ -26,6 +26,7 @@ func speedtest() *cobra.Command {
cmd := &cobra.Command{
Annotations: workspaceCommand,
Use: "speedtest <workspace>",
Args: cobra.ExactArgs(1),
Short: "Run a speed test from your machine to the workspace.",
RunE: func(cmd *cobra.Command, args []string) error {
ctx, cancel := context.WithCancel(cmd.Context())