Skip to content

Commit

Permalink
fix(crane): just need cobra.MinimumNArgs(1) instead of cobra.MaximumN…
Browse files Browse the repository at this point in the history
…Args(1). (#1384)

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Co-authored-by: Furkan Türkal <furkan.turkal@trendyol.com>

Co-authored-by: Furkan Türkal <furkan.turkal@trendyol.com>
  • Loading branch information
developer-guy and Dentrax committed Jun 14, 2022
1 parent 7fc806e commit 12aeccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/crane/cmd/rebase.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 12aeccc

Please sign in to comment.