From f398c9c035fb4aae0df3f3338f02a131979efaf3 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Fri, 29 Jun 2018 10:13:13 -0400 Subject: [PATCH] cmd/skopeo: show full help on 'copy' with no args Signed-off-by: Vincent Batts --- cmd/skopeo/copy.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/skopeo/copy.go b/cmd/skopeo/copy.go index 389fab8d..6421939b 100644 --- a/cmd/skopeo/copy.go +++ b/cmd/skopeo/copy.go @@ -2,7 +2,6 @@ package main import ( "context" - "errors" "fmt" "os" "strings" @@ -34,7 +33,7 @@ func contextsFromGlobalOptions(c *cli.Context) (*types.SystemContext, *types.Sys func copyHandler(c *cli.Context) error { if len(c.Args()) != 2 { - return errors.New("Usage: copy source destination") + return cli.ShowCommandHelp(c, "copy") } policyContext, err := getPolicyContext(c)