mirror of
https://github.com/beego/bee.git
synced 2024-11-22 10:10:53 +00:00
fix error msg when use command "bee api" bug missing the Argument
This commit is contained in:
parent
926ef73108
commit
d475828acf
@ -547,6 +547,10 @@ func init() {
|
|||||||
|
|
||||||
func createapi(cmd *Command, args []string) int {
|
func createapi(cmd *Command, args []string) int {
|
||||||
curpath, _ := os.Getwd()
|
curpath, _ := os.Getwd()
|
||||||
|
if len(args) < 1 {
|
||||||
|
ColorLog("[ERRO] Argument [appname] is missing\n")
|
||||||
|
os.Exit(2)
|
||||||
|
}
|
||||||
if len(args) > 1 {
|
if len(args) > 1 {
|
||||||
cmd.Flag.Parse(args[1:])
|
cmd.Flag.Parse(args[1:])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user