get latest changes from master
This commit is contained in:
committed by
Ajitem Sahasrabuddhe
parent
e01e3c540c
commit
9766be8d3e
28
flaggen/main.go
Normal file
28
flaggen/main.go
Normal file
@@ -0,0 +1,28 @@
|
||||
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)
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user