mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 17:26:28 +00:00
handle conflict with name and output
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
parent
aab61a16de
commit
b1fa7d23c4
@ -59,7 +59,7 @@ The generated image can be in one of multiple formats which can be run on variou
|
|||||||
Example: ` linuxkit build [options] <file>[.yml]`,
|
Example: ` linuxkit build [options] <file>[.yml]`,
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
if name == "" {
|
if name == "" && outputFile == "" {
|
||||||
conf := args[len(args)-1]
|
conf := args[len(args)-1]
|
||||||
if conf == "-" {
|
if conf == "-" {
|
||||||
name = defaultNameForStdin
|
name = defaultNameForStdin
|
||||||
|
Loading…
Reference in New Issue
Block a user