From 04dc9042cf01afeb953ee161a96bc37c1ee76d65 Mon Sep 17 00:00:00 2001 From: Christoph Ostarek Date: Wed, 10 Jul 2024 17:24:53 +0200 Subject: [PATCH] cmd: allow more than one config yaml for build according to the documentation the following command is valid: `linuxkit build equinixmetal.yml equinixmetal.arm64.yml` (docs/platform-equinixmetal.md) So, make it valid. Signed-off-by: Christoph Ostarek --- src/cmd/linuxkit/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/linuxkit/build.go b/src/cmd/linuxkit/build.go index 09317d33d..a31f881b3 100644 --- a/src/cmd/linuxkit/build.go +++ b/src/cmd/linuxkit/build.go @@ -68,7 +68,7 @@ func buildCmd() *cobra.Command { The generated image can be in one of multiple formats which can be run on various platforms. `, Example: ` linuxkit build [options] [.yml]`, - Args: cobra.ExactArgs(1), + Args: cobra.MinimumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { if name == "" && outputFile == "" { conf := args[len(args)-1]