mirror of
https://gitee.com/johng/gf
synced 2026-06-23 08:29:25 +08:00
23 lines
328 B
Go
23 lines
328 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gogf/gf/frame/g"
|
|
"github.com/gogf/gf/os/gcmd"
|
|
)
|
|
|
|
func main() {
|
|
p, err := gcmd.Parse(g.MapStrBool{
|
|
"n,name": true,
|
|
"p,prefix": true,
|
|
"f,force": false,
|
|
"t,tail": false,
|
|
"i,interactive": false,
|
|
})
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
}
|
|
g.Dump(p)
|
|
}
|