2018-12-18 04:02:01 +05:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"gitlab.com/pztrn/flagger"
|
|
|
|
)
|
|
|
|
|
|
|
|
var f *flagger.Flagger
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
f = flagger.New("testprogram", nil)
|
|
|
|
f.Initialize()
|
2019-12-22 01:29:18 +05:00
|
|
|
_ = f.AddFlag(&flagger.Flag{
|
2018-12-18 04:02:01 +05:00
|
|
|
Name: "testflag",
|
|
|
|
Description: "Just a test flag",
|
|
|
|
Type: "bool",
|
|
|
|
DefaultValue: false,
|
|
|
|
})
|
2019-12-22 01:31:33 +05:00
|
|
|
|
2018-12-18 04:02:01 +05:00
|
|
|
f.Parse()
|
|
|
|
}
|