mirror of
https://github.com/beego/bee.git
synced 2025-07-04 16:40:19 +00:00
fix bug
This commit is contained in:
@ -67,18 +67,13 @@ func init() {
|
|||||||
|
|
||||||
func createhprose(cmd *commands.Command, args []string) int {
|
func createhprose(cmd *commands.Command, args []string) int {
|
||||||
output := cmd.Out()
|
output := cmd.Out()
|
||||||
|
if len(args) == 0 {
|
||||||
if len(args) != 1 {
|
|
||||||
beeLogger.Log.Fatal("Argument [appname] is missing")
|
beeLogger.Log.Fatal("Argument [appname] is missing")
|
||||||
}
|
}
|
||||||
|
|
||||||
curpath, _ := os.Getwd()
|
curpath, _ := os.Getwd()
|
||||||
if len(args) > 1 {
|
if len(args) > 1 {
|
||||||
cmd.Flag.Parse(args[1:])
|
cmd.Flag.Parse(args[1:])
|
||||||
}
|
|
||||||
|
|
||||||
if len(args) >= 2 {
|
|
||||||
cmd.Flag.Parse(args[1:])
|
|
||||||
} else {
|
} else {
|
||||||
module = "false"
|
module = "false"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user