From 9e08b7477da09d6ccb717716fa2c5874579a72a1 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Mon, 20 Sep 2021 13:40:45 -0400 Subject: [PATCH] delete: reject position args --- cmd/ghcs/delete.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/ghcs/delete.go b/cmd/ghcs/delete.go index eb00e567f..e6c5c9f53 100644 --- a/cmd/ghcs/delete.go +++ b/cmd/ghcs/delete.go @@ -27,6 +27,9 @@ func newDeleteCmd() *cobra.Command { Use: "delete", Short: "Delete a codespace", RunE: func(cmd *cobra.Command, args []string) error { + if len(args) > 0 { + return fmt.Errorf("delete: unexpected positional arguments") + } switch { case allCodespaces && repo != "": return errors.New("both --all and --repo is not supported")