Fixed flag names

This commit is contained in:
Jamius Siam 2024-11-26 15:48:36 +06:00
parent cab3cc63bf
commit d22f3cff3d
2 changed files with 12 additions and 12 deletions

View file

@ -75,10 +75,10 @@ func init() {
flag.StringVar(&ignoreEnums, "ignore-enums", "", `Comma-separated list of enums to ignore.`) flag.StringVar(&ignoreEnums, "ignore-enums", "", `Comma-separated list of enums to ignore.`)
flag.StringVar(&destDir, "path", "", "Destination directory for files generated.") 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(&modelPkg, "rel-model-path", "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(&tablePkg, "rel-table-path", "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(&viewPkg, "rel-view-path", "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(&enumPkg, "rel-enum-path", "enum", "Relative path for the Enum files package from the destination directory.")
} }
func main() { func main() {

View file

@ -125,10 +125,10 @@ func TestCmdGeneratorWithPkgNames(t *testing.T) {
"-password=jet", "-password=jet",
"-schema=dvds", "-schema=dvds",
"-path="+genTestDir2, "-path="+genTestDir2,
"-model-pkg="+modelPath, "-rel-model-path="+modelPath,
"-table-pkg="+tablePath, "-rel-table-path="+tablePath,
"-view-pkg="+viewPath, "-rel-view-path="+viewPath,
"-enum-pkg="+enumPath) "-rel-enum-path="+enumPath)
cmd.Stderr = os.Stderr cmd.Stderr = os.Stderr
cmd.Stdout = os.Stdout cmd.Stdout = os.Stdout
@ -159,10 +159,10 @@ func TestCmdGeneratorWithPkgNames(t *testing.T) {
"-password=jet", "-password=jet",
"-schema=dvds", "-schema=dvds",
"-path="+genTestDir2, "-path="+genTestDir2,
"-model-pkg="+modelPath, "-rel-model-path="+modelPath,
"-table-pkg="+tablePath, "-rel-table-path="+tablePath,
"-view-pkg="+viewPath, "-rel-view-path="+viewPath,
"-enum-pkg="+enumPath) "-rel-enum-path="+enumPath)
cmd.Stderr = os.Stderr cmd.Stderr = os.Stderr
cmd.Stdout = os.Stdout cmd.Stdout = os.Stdout