Merge pull request #177 from github/delete-surplus-args
delete: reject positional arguments
This commit is contained in:
commit
f33d430500
1 changed files with 3 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue