зеркало из https://github.com/mozilla/gecko-dev.git
geckodriver: main: correct indentation of app function
Source-Repo: https://github.com/mozilla/geckodriver Source-Revision: 69e5b90aa5f565ffffdb26ed532155e2fa521144 committer: jgraham <james@hoppipolla.co.uk> --HG-- extra : rebase_source : 418c85873647dd6c3e7b361388cab7e78e64268a
This commit is contained in:
Родитель
eca5be7394
Коммит
87627a1fda
|
@ -56,48 +56,47 @@ fn app<'a, 'b>() -> App<'a, 'b> {
|
||||||
App::new(format!("geckodriver {}", crate_version!()))
|
App::new(format!("geckodriver {}", crate_version!()))
|
||||||
.about("WebDriver implementation for Firefox.")
|
.about("WebDriver implementation for Firefox.")
|
||||||
.arg(Arg::with_name("webdriver_host")
|
.arg(Arg::with_name("webdriver_host")
|
||||||
.long("host")
|
.long("host")
|
||||||
.value_name("HOST")
|
.value_name("HOST")
|
||||||
.help("Host ip to use for WebDriver server (default: 127.0.0.1)")
|
.help("Host ip to use for WebDriver server (default: 127.0.0.1)")
|
||||||
.takes_value(true))
|
.takes_value(true))
|
||||||
.arg(Arg::with_name("webdriver_port")
|
.arg(Arg::with_name("webdriver_port")
|
||||||
.short("p")
|
.short("p")
|
||||||
.long("port")
|
.long("port")
|
||||||
.value_name("PORT")
|
.value_name("PORT")
|
||||||
.help("Port to use for WebDriver server (default: 4444)")
|
.help("Port to use for WebDriver server (default: 4444)")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.alias("webdriver-port"))
|
.alias("webdriver-port"))
|
||||||
.arg(Arg::with_name("binary")
|
.arg(Arg::with_name("binary")
|
||||||
.short("b")
|
.short("b")
|
||||||
.long("binary")
|
.long("binary")
|
||||||
.value_name("BINARY")
|
.value_name("BINARY")
|
||||||
.help("Path to the Firefox binary")
|
.help("Path to the Firefox binary")
|
||||||
.takes_value(true))
|
.takes_value(true))
|
||||||
.arg(Arg::with_name("marionette_port")
|
.arg(Arg::with_name("marionette_port")
|
||||||
.long("marionette-port")
|
.long("marionette-port")
|
||||||
.value_name("PORT")
|
.value_name("PORT")
|
||||||
.help("Port to use to connect to Gecko (default: random free port)")
|
.help("Port to use to connect to Gecko (default: random free port)")
|
||||||
.takes_value(true))
|
.takes_value(true))
|
||||||
.arg(Arg::with_name("connect_existing")
|
.arg(Arg::with_name("connect_existing")
|
||||||
.long("connect-existing")
|
.long("connect-existing")
|
||||||
.requires("marionette_port")
|
.requires("marionette_port")
|
||||||
.help("Connect to an existing Firefox instance"))
|
.help("Connect to an existing Firefox instance"))
|
||||||
.arg(Arg::with_name("verbosity")
|
.arg(Arg::with_name("verbosity")
|
||||||
.short("v")
|
.short("v")
|
||||||
.multiple(true)
|
.multiple(true)
|
||||||
.conflicts_with("log_level")
|
.conflicts_with("log_level")
|
||||||
.help("Log level verbosity (-v for debug and -vv for trace level)"))
|
.help("Log level verbosity (-v for debug and -vv for trace level)"))
|
||||||
.arg(Arg::with_name("log_level")
|
.arg(Arg::with_name("log_level")
|
||||||
.long("log")
|
.long("log")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.value_name("LEVEL")
|
.value_name("LEVEL")
|
||||||
.possible_values(
|
.possible_values(&["fatal", "error", "warn", "info", "config", "debug", "trace"])
|
||||||
&["fatal", "error", "warn", "info", "config", "debug", "trace"])
|
.help("Set Gecko log level"))
|
||||||
.help("Set Gecko log level"))
|
.arg(Arg::with_name("version")
|
||||||
.arg(Arg::with_name("version")
|
.short("V")
|
||||||
.short("V")
|
.long("version")
|
||||||
.long("version")
|
.help("Prints version and copying information"))
|
||||||
.help("Prints version and copying information"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn run() -> ProgramResult {
|
fn run() -> ProgramResult {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче