You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
399 B
29 lines
399 B
package main
|
|
|
|
import (
|
|
"github.com/urfave/cli"
|
|
"log"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
app := cli.NewApp()
|
|
|
|
app.Name = "flaggen"
|
|
app.Usage = "Generate flag type code!"
|
|
|
|
app.Flags = []cli.Flag{
|
|
cli.StringFlag{
|
|
Name: "package, p",
|
|
Value: "cli",
|
|
Usage: "`Name of the package` for which the flag types will be generated",
|
|
},
|
|
}
|
|
|
|
err := app.Run(os.Args)
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
|
|
}
|