Merge pull request #4054 from christoph-zededa/fix_build_command_args

cmd: allow more than one config yaml for build
This commit is contained in:
Avi Deitcher 2024-07-10 19:00:52 +03:00 committed by GitHub
commit 8d76ae282f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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] <file>[.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]