From 984b677983a9d5bf415ed02eb8cf636ffc9be06c Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Wed, 7 Sep 2022 21:02:02 +0000 Subject: [PATCH] fix: Require an argument for speedtest --- cli/speedtest.go | 1 + 1 file changed, 1 insertion(+) 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())