diff --git a/docs/README.rst b/docs/README.rst index 31b3911f..4aadedca 100644 --- a/docs/README.rst +++ b/docs/README.rst @@ -66,7 +66,7 @@ Command line options -d, --dbname= PostgreSQL database name (default: timetable) [$PGTT_PGDATABASE] -u, --user= PostgreSQL user (default: scheduler) [$PGTT_PGUSER] --password= PostgreSQL user password [$PGTT_PGPASSWORD] - --sslmode=[disable|require] What SSL priority use for connection (default: disable) + --sslmode=[disable|require] What SSL mode to use for connection (default: disable) [$PGTT_PGSSLMODE] --pgurl= PostgreSQL connection URL [$PGTT_URL] --timeout= PostgreSQL connection timeout in seconds (default: 90) [$PGTT_TIMEOUT] diff --git a/internal/config/cmdparser.go b/internal/config/cmdparser.go index 68d9c743..9a19586d 100644 --- a/internal/config/cmdparser.go +++ b/internal/config/cmdparser.go @@ -14,7 +14,7 @@ type ConnectionOpts struct { DBName string `short:"d" long:"dbname" description:"PostgreSQL database name" default:"timetable" env:"PGTT_PGDATABASE"` User string `short:"u" long:"user" description:"PostgreSQL user" default:"scheduler" env:"PGTT_PGUSER"` Password string `long:"password" description:"PostgreSQL user password" env:"PGTT_PGPASSWORD"` - SSLMode string `long:"sslmode" default:"disable" description:"What SSL priority use for connection" choice:"disable" choice:"require"` + SSLMode string `long:"sslmode" default:"disable" description:"What SSL mode to use for connection" env:"PGTT_PGSSLMODE" choice:"disable" choice:"require"` PgURL string `long:"pgurl" description:"PostgreSQL connection URL" env:"PGTT_URL"` Timeout int `long:"timeout" description:"PostgreSQL connection timeout" env:"PGTT_TIMEOUT" default:"90"` }