Skip to content

Commit 61038af

Browse files
committed
-cnf goes with -command
1 parent d3ac706 commit 61038af

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

cliTools/loadFlags.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ func LoadCMD(filepath string, modOrFile string) (string, string, string, string,
5858
}
5959
}
6060
if *deploy == true && (*file==true || *cmd == true || *cnfM==true || *filepathP != "" || *commandP != "" || *helpP ==true || *initP==true || *nameP!="" || *osP != "" || *archP != "" || *mod ==true){
61-
color.Red("Warning!!! Deploy takes only deploy argument")
61+
color.Yellow("Warning!!! Deploy takes only deploy argument")
62+
}
63+
if *cnfM == true && *commandP == "" {
64+
color.Red("You must specify a command")
6265
}
6366
return filepath, modOrFile, cnf, command, helpP, init, name, os, arch, cont
6467
}

controllers/pv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ func cnfFunc(command string, filepath string, modOrFile string) (string, string)
7575
}
7676
cliTools.CheckModOrPath(modOrFile, filepath)
7777
return filepath, modOrFile
78-
}
78+
}

0 commit comments

Comments
 (0)