Skip to content

Commit

Permalink
Fix help examples for image append/extract
Browse files Browse the repository at this point in the history
Fix bug #21247 which show properly the baseline of the command for the examples.
  • Loading branch information
chmouel committed Oct 13, 2018
1 parent 45b63fd commit a65fcb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/oc/cli/image/append/append.go
Expand Up @@ -112,7 +112,7 @@ func NewCmdAppendImage(name string, streams genericclioptions.IOStreams) *cobra.
Use: "append",
Short: "Add layers to images and push them to a registry",
Long: desc,
Example: fmt.Sprintf(example, name),
Example: fmt.Sprintf(example, name+" append"),
Run: func(c *cobra.Command, args []string) {
kcmdutil.CheckErr(o.Complete(c, args))
kcmdutil.CheckErr(o.Run())
Expand Down
2 changes: 1 addition & 1 deletion pkg/oc/cli/image/extract/extract.go
Expand Up @@ -143,7 +143,7 @@ func New(name string, streams genericclioptions.IOStreams) *cobra.Command {
Use: "extract",
Short: "Copy files from an image to the filesystem",
Long: desc,
Example: fmt.Sprintf(example, name),
Example: fmt.Sprintf(example, name+" extract"),
Run: func(c *cobra.Command, args []string) {
kcmdutil.CheckErr(o.Complete(c, args))
kcmdutil.CheckErr(o.Run())
Expand Down

0 comments on commit a65fcb3

Please sign in to comment.