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