diff --git a/cli/speedtest.go b/cli/speedtest.go index ab5a402977cb5..165611210577f 100644 --- a/cli/speedtest.go +++ b/cli/speedtest.go @@ -26,6 +26,7 @@ func speedtest() *cobra.Command { cmd := &cobra.Command{ Annotations: workspaceCommand, Use: "speedtest ", + 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())