From f510f01768155fc98d5fa3005e2ec1df5b6e64d8 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Wed, 7 Sep 2022 16:10:17 -0500 Subject: [PATCH] fix: Require an argument for speedtest (#3946) --- cli/speedtest.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/speedtest.go b/cli/speedtest.go index ab5a402977..1656112105 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())