Skip to content

Commit

Permalink
Change -trim_package_prefix to -trim_path_package_prefix (#687)
Browse files Browse the repository at this point in the history
* Change `-trim_package_prefix` to `-trim_path_package_prefix`

* Improve flag comment
  • Loading branch information
wenovus authored May 27, 2022
1 parent 2198f76 commit 9743b45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ var (
listBuilderKeyThreshold = flag.Uint("list_builder_key_threshold", 0, "The threshold equal or over which the path structs' builder API is used for key population. 0 means infinity. This flag is only meaningful when wildcard paths are generated.")
pathStructSuffix = flag.String("path_struct_suffix", "Path", "The suffix string appended to each generated path struct in order to differentiate their names from their corresponding schema struct names.")
splitByModule = flag.Bool("split_pathstructs_by_module", false, "Whether to split path struct generation by module.")
trimPackagePrefix = flag.String("trim_package_prefix", "", "Module prefix to trim from generated package names (e.g. 'openconfig-'), when split_pathstructs_by_module=true.")
trimPathPackagePrefix = flag.String("trim_path_package_prefix", "", "Module prefix to trim from generated path struct package names (e.g. 'openconfig-'), when split_pathstructs_by_module=true.")
baseImportPath = flag.String("base_import_path", "", "Base import path used to concatenate with module package relative paths for path struct imports when split_pathstructs_by_module=true.")
packageSuffix = flag.String("path_struct_package_suffix", "path", "Suffix to append to generated Go package names, when split_pathstructs_by_module=true.")
)
Expand Down Expand Up @@ -442,7 +442,7 @@ func main() {
ListBuilderKeyThreshold: *listBuilderKeyThreshold,
GenerateWildcardPaths: *generateWildcardPaths,
SimplifyWildcardPaths: *simplifyWildcardPaths,
TrimPackagePrefix: *trimPackagePrefix,
TrimPackagePrefix: *trimPathPackagePrefix,
SplitByModule: *splitByModule,
BaseImportPath: *baseImportPath,
PackageSuffix: *packageSuffix,
Expand Down

0 comments on commit 9743b45

Please sign in to comment.