From 9ad0e8f223b42e4dc6ddf53e786a92238529ce19 Mon Sep 17 00:00:00 2001 From: Riyaz Faizullabhoy Date: Tue, 26 Sep 2017 16:15:45 -0700 Subject: [PATCH] trust: remove extraneous OPTIONS from commands that do not use it Signed-off-by: Riyaz Faizullabhoy --- cli/command/trust/sign.go | 2 +- cli/command/trust/view.go | 2 +- docs/reference/commandline/trust_sign.md | 2 +- docs/reference/commandline/trust_view.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/command/trust/sign.go b/cli/command/trust/sign.go index 68598b9878..a4c888e6df 100644 --- a/cli/command/trust/sign.go +++ b/cli/command/trust/sign.go @@ -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 { diff --git a/cli/command/trust/view.go b/cli/command/trust/view.go index 18d07585eb..bdc870d578 100644 --- a/cli/command/trust/view.go +++ b/cli/command/trust/view.go @@ -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 { diff --git a/docs/reference/commandline/trust_sign.md b/docs/reference/commandline/trust_sign.md index c7e704ce8e..d3f22fdc12 100644 --- a/docs/reference/commandline/trust_sign.md +++ b/docs/reference/commandline/trust_sign.md @@ -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 diff --git a/docs/reference/commandline/trust_view.md b/docs/reference/commandline/trust_view.md index beebf10e06..9743272bf2 100644 --- a/docs/reference/commandline/trust_view.md +++ b/docs/reference/commandline/trust_view.md @@ -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