Skip to content

Commit 9743b45

Browse files
authored
Change -trim_package_prefix to -trim_path_package_prefix (#687)
* Change `-trim_package_prefix` to `-trim_path_package_prefix` * Improve flag comment
1 parent 2198f76 commit 9743b45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generator/generator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ var (
103103
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.")
104104
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.")
105105
splitByModule = flag.Bool("split_pathstructs_by_module", false, "Whether to split path struct generation by module.")
106-
trimPackagePrefix = flag.String("trim_package_prefix", "", "Module prefix to trim from generated package names (e.g. 'openconfig-'), when split_pathstructs_by_module=true.")
106+
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.")
107107
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.")
108108
packageSuffix = flag.String("path_struct_package_suffix", "path", "Suffix to append to generated Go package names, when split_pathstructs_by_module=true.")
109109
)
@@ -442,7 +442,7 @@ func main() {
442442
ListBuilderKeyThreshold: *listBuilderKeyThreshold,
443443
GenerateWildcardPaths: *generateWildcardPaths,
444444
SimplifyWildcardPaths: *simplifyWildcardPaths,
445-
TrimPackagePrefix: *trimPackagePrefix,
445+
TrimPackagePrefix: *trimPathPackagePrefix,
446446
SplitByModule: *splitByModule,
447447
BaseImportPath: *baseImportPath,
448448
PackageSuffix: *packageSuffix,

0 commit comments

Comments
 (0)