diff --git a/cmd/jet/main.go b/cmd/jet/main.go index aecbfaa..67d739f 100644 --- a/cmd/jet/main.go +++ b/cmd/jet/main.go @@ -75,10 +75,10 @@ func init() { flag.StringVar(&ignoreEnums, "ignore-enums", "", `Comma-separated list of enums to ignore.`) flag.StringVar(&destDir, "path", "", "Destination directory for files generated.") - flag.StringVar(&modelPkg, "model-pkg", "model", "Relative path for the Model files package from the destination directory.") - flag.StringVar(&tablePkg, "table-pkg", "table", "Relative path for the Table files package from the destination directory.") - flag.StringVar(&viewPkg, "view-pkg", "view", "Relative path for the View files package from the destination directory.") - flag.StringVar(&enumPkg, "enum-pkg", "enum", "Relative path for the Enum files package from the destination directory.") + flag.StringVar(&modelPkg, "rel-model-path", "model", "Relative path for the Model files package from the destination directory.") + flag.StringVar(&tablePkg, "rel-table-path", "table", "Relative path for the Table files package from the destination directory.") + flag.StringVar(&viewPkg, "rel-view-path", "view", "Relative path for the View files package from the destination directory.") + flag.StringVar(&enumPkg, "rel-enum-path", "enum", "Relative path for the Enum files package from the destination directory.") } func main() { diff --git a/tests/postgres/generator_test.go b/tests/postgres/generator_test.go index 48efc1d..93fb9c3 100644 --- a/tests/postgres/generator_test.go +++ b/tests/postgres/generator_test.go @@ -125,10 +125,10 @@ func TestCmdGeneratorWithPkgNames(t *testing.T) { "-password=jet", "-schema=dvds", "-path="+genTestDir2, - "-model-pkg="+modelPath, - "-table-pkg="+tablePath, - "-view-pkg="+viewPath, - "-enum-pkg="+enumPath) + "-rel-model-path="+modelPath, + "-rel-table-path="+tablePath, + "-rel-view-path="+viewPath, + "-rel-enum-path="+enumPath) cmd.Stderr = os.Stderr cmd.Stdout = os.Stdout @@ -159,10 +159,10 @@ func TestCmdGeneratorWithPkgNames(t *testing.T) { "-password=jet", "-schema=dvds", "-path="+genTestDir2, - "-model-pkg="+modelPath, - "-table-pkg="+tablePath, - "-view-pkg="+viewPath, - "-enum-pkg="+enumPath) + "-rel-model-path="+modelPath, + "-rel-table-path="+tablePath, + "-rel-view-path="+viewPath, + "-rel-enum-path="+enumPath) cmd.Stderr = os.Stderr cmd.Stdout = os.Stdout