mirror of
https://github.com/containers/skopeo.git
synced 2025-06-28 15:47:34 +00:00
Merge pull request #519 from vbatts/copy_help_output
cmd/skopeo: show full help on 'copy' with no args
This commit is contained in:
commit
6e23a32282
@ -2,7 +2,6 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
@ -34,7 +33,7 @@ func contextsFromGlobalOptions(c *cli.Context) (*types.SystemContext, *types.Sys
|
|||||||
|
|
||||||
func copyHandler(c *cli.Context) error {
|
func copyHandler(c *cli.Context) error {
|
||||||
if len(c.Args()) != 2 {
|
if len(c.Args()) != 2 {
|
||||||
return errors.New("Usage: copy source destination")
|
return cli.ShowCommandHelp(c, "copy")
|
||||||
}
|
}
|
||||||
|
|
||||||
policyContext, err := getPolicyContext(c)
|
policyContext, err := getPolicyContext(c)
|
||||||
|
Loading…
Reference in New Issue
Block a user