1
0
mirror of https://github.com/beego/bee.git synced 2025-07-01 17:20:17 +00:00

add beego project recognition

This commit is contained in:
slene
2013-06-27 15:29:27 +08:00
parent 15c558d329
commit 1224787b47
2 changed files with 67 additions and 24 deletions

View File

@ -83,13 +83,8 @@ func main() {
if cmd.CustomFlags {
args = args[1:]
} else {
if len(args) > 2 {
cmd.Flag.Parse(args[2:])
args = append([]string{args[1]}, cmd.Flag.Args()...)
} else {
cmd.Flag.Parse(args[1:])
args = cmd.Flag.Args()
}
cmd.Flag.Parse(args[1:])
args = cmd.Flag.Args()
}
cmd.Run(cmd, args)
os.Exit(2)