From 12aecccd78584154cea79fc3e0d1cfc8b4daa46d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20Apayd=C4=B1n?= Date: Tue, 14 Jun 2022 16:48:00 +0300 Subject: [PATCH] fix(crane): just need cobra.MinimumNArgs(1) instead of cobra.MaximumNArgs(1). (#1384) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Batuhan Apaydın Co-authored-by: Furkan Türkal Co-authored-by: Furkan Türkal --- cmd/crane/cmd/rebase.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/crane/cmd/rebase.go b/cmd/crane/cmd/rebase.go index b74a5d843..43f21b533 100644 --- a/cmd/crane/cmd/rebase.go +++ b/cmd/crane/cmd/rebase.go @@ -35,7 +35,7 @@ func NewCmdRebase(options *[]crane.Option) *cobra.Command { rebaseCmd := &cobra.Command{ Use: "rebase", Short: "Rebase an image onto a new base image", - Args: cobra.MaximumNArgs(1), + Args: cobra.MinimumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { if orig == "" { orig = args[0]