Fixed flag names
This commit is contained in:
parent
cab3cc63bf
commit
d22f3cff3d
2 changed files with 12 additions and 12 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue