fix: using standalone && auto tag set && fielaligment (#103)
This commit is contained in:
9
main.go
9
main.go
@@ -24,11 +24,6 @@ var (
|
||||
)
|
||||
|
||||
func main() {
|
||||
opts := &protogen.Options{
|
||||
ParamFunc: flagSet.Set,
|
||||
}
|
||||
|
||||
_ = flagSet.Parse(os.Args[1:])
|
||||
|
||||
if *flagHelp {
|
||||
flagSet.PrintDefaults()
|
||||
@@ -37,6 +32,10 @@ func main() {
|
||||
|
||||
g := &Generator{}
|
||||
|
||||
opts := &protogen.Options{
|
||||
ParamFunc: flagSet.Set,
|
||||
}
|
||||
|
||||
opts.Run(g.Generate)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user