fix: using standalone && auto tag set && fielaligment (#103)

This commit is contained in:
Denis
2026-03-01 18:13:34 +03:00
committed by GitHub
parent 2f67df5079
commit 545af44de7
13 changed files with 268 additions and 134 deletions

View File

@@ -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)
}