mirror of
				https://github.com/beego/bee.git
				synced 2025-11-04 14:33:24 +00:00 
			
		
		
		
	Handle case when appname argument is missing
This commit is contained in:
		@@ -300,9 +300,8 @@ func init() {
 | 
			
		||||
func createhprose(cmd *Command, args []string) int {
 | 
			
		||||
	output := cmd.Out()
 | 
			
		||||
 | 
			
		||||
	if len(args) < 1 {
 | 
			
		||||
		ColorLog("[ERRO] Argument [appname] is missing\n")
 | 
			
		||||
		os.Exit(2)
 | 
			
		||||
	if len(args) != 1 {
 | 
			
		||||
		logger.Fatal("Argument [appname] is missing")
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	curpath, _ := os.Getwd()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user