cmd/skopeo: show full help on 'copy' with no args

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2018-06-29 10:13:13 -04:00
parent 0144aa8dc5
commit f398c9c035
No known key found for this signature in database
GPG Key ID: 10937E57733F1362

View File

@ -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)