Browse Source

Merge pull request #104 from kyle-wang/master

fix error msg when use command "bee api" bug missing the Argument
pull/106/head
astaxie 7 years ago
parent
commit
73874efe19
  1. 4
      apiapp.go

4
apiapp.go

@ -547,6 +547,10 @@ func init() {
func createapi(cmd *Command, args []string) int {
curpath, _ := os.Getwd()
if len(args) < 1 {
ColorLog("[ERRO] Argument [appname] is missing\n")
os.Exit(2)
}
if len(args) > 1 {
cmd.Flag.Parse(args[1:])
}

Loading…
Cancel
Save