refactor: Move from deprecated empty_values

This commit is contained in:
Ed Page 2022-01-18 16:21:53 -06:00
parent 1e1c99bbdb
commit ac8526688a
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ pub fn make_subcommand<'help>() -> App<'help> {
.long("hostname") .long("hostname")
.takes_value(true) .takes_value(true)
.default_value("localhost") .default_value("localhost")
.empty_values(false) .forbid_empty_values(true)
.help("Hostname to listen on for HTTP connections"), .help("Hostname to listen on for HTTP connections"),
) )
.arg( .arg(
@ -45,7 +45,7 @@ pub fn make_subcommand<'help>() -> App<'help> {
.long("port") .long("port")
.takes_value(true) .takes_value(true)
.default_value("3000") .default_value("3000")
.empty_values(false) .forbid_empty_values(true)
.help("Port to use for HTTP connections"), .help("Port to use for HTTP connections"),
) )
.arg_from_usage("-o, --open 'Opens the book server in a web browser'") .arg_from_usage("-o, --open 'Opens the book server in a web browser'")

View File

@ -24,7 +24,7 @@ pub fn make_subcommand<'help>() -> App<'help> {
.use_delimiter(true) .use_delimiter(true)
.require_delimiter(true) .require_delimiter(true)
.multiple(true) .multiple(true)
.empty_values(false) .forbid_empty_values(true)
.help("A comma-separated list of directories to add to {n}the crate search path when building tests")) .help("A comma-separated list of directories to add to {n}the crate search path when building tests"))
} }