Hide replace flag from help output
* Replace flag is a "not recommended for use" flag, and is mainly present to be used with software that is using sqlboiler as a library, such as abcweb
This commit is contained in:
parent
59c238539d
commit
10ee452032
1 changed files with 4 additions and 1 deletions
5
main.go
5
main.go
|
@ -14,7 +14,7 @@ import (
|
|||
"github.com/vattle/sqlboiler/boilingcore"
|
||||
)
|
||||
|
||||
const sqlBoilerVersion = "2.1.8"
|
||||
const sqlBoilerVersion = "2.1.9"
|
||||
|
||||
var (
|
||||
cmdState *boilingcore.State
|
||||
|
@ -88,6 +88,9 @@ func main() {
|
|||
rootCmd.PersistentFlags().BoolP("tinyint-as-bool", "", false, "Map MySQL tinyint(1) in Go to bool instead of int8")
|
||||
rootCmd.PersistentFlags().BoolP("wipe", "", false, "Delete the output folder (rm -rf) before generation to ensure sanity")
|
||||
|
||||
// hide flags not recommended for use
|
||||
rootCmd.PersistentFlags().MarkHidden("replace")
|
||||
|
||||
viper.SetDefault("postgres.sslmode", "require")
|
||||
viper.SetDefault("postgres.port", "5432")
|
||||
viper.SetDefault("mysql.sslmode", "true")
|
||||
|
|
Loading…
Add table
Reference in a new issue