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:
Vincent Demeester 2017-09-27 09:41:33 +02:00 committed by GitHub
commit e27e07a8a9
4 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ import (
func newSignCommand(dockerCli command.Cli) *cobra.Command { func newSignCommand(dockerCli command.Cli) *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "sign [OPTIONS] IMAGE:TAG", Use: "sign IMAGE:TAG",
Short: "Sign an image", Short: "Sign an image",
Args: cli.ExactArgs(1), Args: cli.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {

View File

@ -49,7 +49,7 @@ func (tagComparator trustTagRowList) Swap(i, j int) {
func newViewCommand(dockerCli command.Cli) *cobra.Command { func newViewCommand(dockerCli command.Cli) *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "view [OPTIONS] IMAGE[:TAG]", Use: "view IMAGE[:TAG]",
Short: "Display detailed information about keys and signatures", Short: "Display detailed information about keys and signatures",
Args: cli.ExactArgs(1), Args: cli.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {

View File

@ -16,7 +16,7 @@ keywords: "sign, notary, trust"
# trust sign # trust sign
```markdown ```markdown
Usage: docker trust sign [OPTIONS] IMAGE:TAG Usage: docker trust sign IMAGE:TAG
Sign an image Sign an image

View File

@ -16,7 +16,7 @@ keywords: "view, notary, trust"
# trust view # trust view
```markdown ```markdown
Usage: docker trust view [OPTIONS] IMAGE[:TAG] Usage: docker trust view IMAGE[:TAG]
Display detailed information about keys and signatures Display detailed information about keys and signatures