Skip to content

Commit f510f01

Browse files
authored
fix: Require an argument for speedtest (coder#3946)
1 parent 2a085d1 commit f510f01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/speedtest.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func speedtest() *cobra.Command {
2626
cmd := &cobra.Command{
2727
Annotations: workspaceCommand,
2828
Use: "speedtest <workspace>",
29+
Args: cobra.ExactArgs(1),
2930
Short: "Run a speed test from your machine to the workspace.",
3031
RunE: func(cmd *cobra.Command, args []string) error {
3132
ctx, cancel := context.WithCancel(cmd.Context())

0 commit comments

Comments
 (0)