X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=cmd%2Fbinapi-generator%2Fmain.go;fp=cmd%2Fbinapi-generator%2Fmain.go;h=3dc2c08bb65db589a795a4df17bb3193235d4bfd;hb=ff0a39377533365e128c3364395c6bfbae8d5b1a;hp=732b4f35c07335e41dd4328d6b845b74b03c1537;hpb=8c3f04816a8fd23a5eabde1b36cb2471e06229bc;p=govpp.git diff --git a/cmd/binapi-generator/main.go b/cmd/binapi-generator/main.go index 732b4f3..3dc2c08 100644 --- a/cmd/binapi-generator/main.go +++ b/cmd/binapi-generator/main.go @@ -45,8 +45,10 @@ func main() { importPrefix = flag.String("import-prefix", "", "Define import path prefix to be used to import types.") generatorPlugins = flag.String("gen", "rpc", "List of generator plugins to run for files.") - printVersion = flag.Bool("version", false, "Prints version and exits.") - debugLog = flag.Bool("debug", false, "Enable verbose logging.") + printVersion = flag.Bool("version", false, "Prints version and exits.") + debugLog = flag.Bool("debug", false, "Enable verbose logging.") + noVersionInfo = flag.Bool("no-version-info", false, "Disable version info in generated files.") + noSourcePathInfo = flag.Bool("no-source-path-info", false, "Disable source path info in generated files.") ) flag.Parse() @@ -71,8 +73,10 @@ func main() { } opts := binapigen.Options{ - ImportPrefix: *importPrefix, - OutputDir: *theOutputDir, + ImportPrefix: *importPrefix, + OutputDir: *theOutputDir, + NoVersionInfo: *noVersionInfo, + NoSourcePathInfo: *noSourcePathInfo, } if opts.OutputDir == "binapi" { if wd, _ := os.Getwd(); filepath.Base(wd) == "binapi" {