parse_opts in test::test - Rust
Description: Parses command line arguments into test options. Returns `None` if help was requested (since we only show help message and don’t run tests), returns `Some(Err(..))` if provided arguments are incorrect, otherwise creates a `TestOpts` object and returns it.
Keywords: rust, rustlang, rust-lang, parse_opts

# Function test::test::parse_opts
[−][src]

    pub fn parse_opts(args: &[String]) -> Option<Result<TestOpts, String>>

🔬 This is a nightly-only experimental API. (`test`)
Expand description

Parses command line arguments into test options. Returns `None` if help was requested (since we only show help message and don’t run tests), returns `Some(Err(..))` if provided arguments are incorrect, otherwise creates a `TestOpts` object and returns it.