Skip to content

Commit 6434a44

Browse files
committed
cmd - rename "persist" argument to "model" (keeping the old as a deprecated alias for a while)
closes #37
1 parent 512858c commit 6434a44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/generatorcmd.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ func getArgs(impl generatorCommand) (clean bool, options generator.Options) {
7979
flag.Usage = impl.ShowUsage
8080
impl.ConfigureFlags()
8181
flag.StringVar(&options.OutPath, "out", "", "output path for generated source files")
82-
flag.StringVar(&options.ModelInfoFile, "persist", "", "path to the model information persistence file (JSON)")
82+
flag.StringVar(&options.ModelInfoFile, "model", "", "path to the model information persistence file (JSON)")
83+
// TODO remove in v0.15.0 or later
84+
flag.StringVar(&options.ModelInfoFile, "persist", "", "[DEPRECATED, use 'model'] path to the model information persistence file (JSON)")
8385
flag.BoolVar(&printVersion, "version", false, "print the generator version info")
8486
flag.BoolVar(&printHelp, "help", false, "print this help")
8587
flag.Parse()

0 commit comments

Comments
 (0)