mirror of https://github.com/docker/cli.git
Merge pull request #563 from riyazdf/remove-extra-options
trust: remove extraneous OPTIONS from commands that do not use it
This commit is contained in:
commit
e27e07a8a9
|
@ -21,7 +21,7 @@ import (
|
|||
|
||||
func newSignCommand(dockerCli command.Cli) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "sign [OPTIONS] IMAGE:TAG",
|
||||
Use: "sign IMAGE:TAG",
|
||||
Short: "Sign an image",
|
||||
Args: cli.ExactArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
|
|
@ -49,7 +49,7 @@ func (tagComparator trustTagRowList) Swap(i, j int) {
|
|||
|
||||
func newViewCommand(dockerCli command.Cli) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "view [OPTIONS] IMAGE[:TAG]",
|
||||
Use: "view IMAGE[:TAG]",
|
||||
Short: "Display detailed information about keys and signatures",
|
||||
Args: cli.ExactArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
|
|
@ -16,7 +16,7 @@ keywords: "sign, notary, trust"
|
|||
# trust sign
|
||||
|
||||
```markdown
|
||||
Usage: docker trust sign [OPTIONS] IMAGE:TAG
|
||||
Usage: docker trust sign IMAGE:TAG
|
||||
|
||||
Sign an image
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ keywords: "view, notary, trust"
|
|||
# trust view
|
||||
|
||||
```markdown
|
||||
Usage: docker trust view [OPTIONS] IMAGE[:TAG]
|
||||
Usage: docker trust view IMAGE[:TAG]
|
||||
|
||||
Display detailed information about keys and signatures
|
||||
|
||||
|
|
Loading…
Reference in New Issue