clop v0.0.4 Golang 实现的命令行解析器

项目地址

https://gitee.com/guonaihong/clop

https://github.com/guonaihong/clop

changlog

可以控制选项只能被设置一次

package main

import (

"github.com/guonaihong/clop"

)

type Once struct {

Debug bool `clop:"-d; --debug; once" usage:"debug mode"`

}

func main() {

o := Once{}

clop.Bind(&o)

}

#35 -h; --help选项可以被重载