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:
Patrick O'brien 2017-02-04 15:51:07 +10:00
parent 59c238539d
commit 10ee452032

View file

@ -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")