コード例 #1
0
ファイル: flagly-git.go プロジェクト: chzyer/flagly
func (g *Git) FlaglyInit() {
	// we can set the description via `flagly.SetDesc` or just a field tag `desc:"xxx"`
	flagly.SetDesc(&g.Version, "show version")
}
コード例 #2
0
ファイル: git-clone.go プロジェクト: chzyer/flagly
func (g *GitClone) FlaglyInit() {
	flagly.SetDesc(&g.Template, "directory from which templates will be used")
}