mirror of
https://github.com/beego/bee.git
synced 2024-12-22 15:10:49 +00:00
fix bee hprose error.
This commit is contained in:
parent
0ccc6306b7
commit
20fdbe6a1a
@ -308,6 +308,11 @@ func createhprose(cmd *Command, args []string) int {
|
||||
|
||||
w := NewColorWriter(os.Stdout)
|
||||
|
||||
if len(args) < 1 {
|
||||
ColorLog("[ERRO] Argument [appname] is missing\n")
|
||||
os.Exit(2)
|
||||
}
|
||||
|
||||
curpath, _ := os.Getwd()
|
||||
if len(args) > 1 {
|
||||
cmd.Flag.Parse(args[1:])
|
||||
|
Loading…
Reference in New Issue
Block a user