Skip to content

Commit 1fb274c

Browse files
authored
fix: Disallow args for config-ssh subcommand in cli (#3393)
1 parent b10a1b8 commit 1fb274c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/configssh.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ func configSSH() *cobra.Command {
156156
Command: "coder config-ssh --dry-run",
157157
},
158158
),
159-
RunE: func(cmd *cobra.Command, args []string) error {
159+
Args: cobra.ExactArgs(0),
160+
RunE: func(cmd *cobra.Command, _ []string) error {
160161
client, err := createClient(cmd)
161162
if err != nil {
162163
return err

0 commit comments

Comments
 (0)