66 "go/build"
77)
88
9- func LoadCMD (filepath string , modOrFile string ) (string , string , string , string , * bool , bool , string , string , string , string ) {
9+ func LoadCMD (filepath string , modOrFile string ) (string , string , string , string , * bool , bool , string , string , string , string , bool ) {
1010 var filepathP * string
1111 cmd := flag .Bool ("cmd" , false , "a bool" )
1212 cnfM := flag .Bool ("cnf" , false , "a bool" )
@@ -20,8 +20,10 @@ func LoadCMD(filepath string, modOrFile string) (string, string, string, string,
2020 archP := flag .String ("arch" , "" , "a string" )
2121 mod := flag .Bool ("mod" , false , "a bool" )
2222 file := flag .Bool ("file" , false , "a bool" )
23+ addFileM := flag .Bool ("addFile" ,false ,"a bool" )
2324 flag .Parse ()
2425 cnf := ""
26+ addFile := false
2527 if * cmd == true {
2628 cnf = "cmd"
2729 } else if * cnfM == true {
@@ -30,6 +32,8 @@ func LoadCMD(filepath string, modOrFile string) (string, string, string, string,
3032 cnf = "deploy"
3133 } else if (* cmd == true && * cnfM == true ) || (* cmd == true && * deploy == true ) || (* cnfM == true && * deploy == true ) {
3234 color .Red ("Too many mode parameters" )
35+ } else if * addFileM == true {
36+ addFile = true
3337 }
3438 filepath = * filepathP
3539 init := * initP
@@ -63,5 +67,5 @@ func LoadCMD(filepath string, modOrFile string) (string, string, string, string,
6367 if * cnfM == true && * commandP == "" {
6468 color .Red ("You must specify a command" )
6569 }
66- return filepath , modOrFile , cnf , command , helpP , init , name , os , arch , cont
70+ return filepath , modOrFile , cnf , command , helpP , init , name , os , arch , cont , addFile
6771}
0 commit comments