Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
Fix help text of delete flags (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtschreiter authored Jun 22, 2020
1 parent db2c3fd commit c347b23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ All notable changes to this project will be documented in this file.
* enableServiceLinks
* overhead
* preemptionPolicy
* Fix help text of delete flags (#54)

### Removed

Expand Down
4 changes: 2 additions & 2 deletions cmd/delete/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ func delete(cmd *cobra.Command, args []string) {
}

func init() {
deleteCmd.Flags().String("project-name", "", "The name of the project to list resouces from")
deleteCmd.Flags().String("project-name", "", "The name of the project to delete resouces from")
viper.BindPFlag("delete_cmd.project_name", deleteCmd.Flags().Lookup("project-name"))

deleteCmd.Flags().String("namespace", "", "The namespace of the project to list resouces from")
deleteCmd.Flags().String("namespace", "", "The namespace of the project to delete resouces from")
viper.BindPFlag("delete_cmd.namespace", deleteCmd.Flags().Lookup("namespace"))
}
4 changes: 2 additions & 2 deletions docs/cli/cattlectl_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ cattlectl delete KIND NAME [flags]

```
-h, --help help for delete
--namespace string The namespace of the project to list resouces from
--project-name string The name of the project to list resouces from
--namespace string The namespace of the project to delete resouces from
--project-name string The name of the project to delete resouces from
```

### Options inherited from parent commands
Expand Down

0 comments on commit c347b23

Please sign in to comment.