Merge pull request #346 from Lao-liu/develop

fix bee hprose error.
This commit is contained in:
astaxie 2016-12-27 11:59:00 +08:00 committed by GitHub
commit 09e6fb26e2
1 changed files with 5 additions and 0 deletions

View File

@ -300,6 +300,11 @@ 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)
}
curpath, _ := os.Getwd()
if len(args) > 1 {
cmd.Flag.Parse(args[1:])