wip: fixed docs and remove faulty #[cfg(test)] block

This commit is contained in:
Alexander Kuvaev 2015-08-18 23:27:24 +03:00
parent 0b916a00de
commit 92b9f8f5bf
2 changed files with 6 additions and 9 deletions

View file

@ -3044,9 +3044,4 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
None => (String::new(), None), None => (String::new(), None),
} }
} }
}
#[cfg(tests)]
mod tests {
use clap::{App, Arg, SubCommand};
} }

View file

@ -397,7 +397,7 @@ impl<'n, 'l, 'h, 'g, 'p, 'r, 'o> Arg<'n, 'l, 'h, 'g, 'p, 'r, 'o> {
/// Sets a mutually exclusive argument by name. I.e. when using this argument, /// Sets a mutually exclusive argument by name. I.e. when using this argument,
/// the following argument can't be present. /// the following argument can't be present.
/// ///
/// **NOTE:** Mutually exclusive rules take precedence over being required /// **NOTE:** Mutually exclusive rules take precedence over being overridden and required
/// by default. Mutually exclusive rules only need to be set for one of the two /// by default. Mutually exclusive rules only need to be set for one of the two
/// arguments, they do not need to be set for each. /// arguments, they do not need to be set for each.
/// ///
@ -421,7 +421,7 @@ impl<'n, 'l, 'h, 'g, 'p, 'r, 'o> Arg<'n, 'l, 'h, 'g, 'p, 'r, 'o> {
/// Sets mutually exclusive arguments by names. I.e. when using this argument, /// Sets mutually exclusive arguments by names. I.e. when using this argument,
/// the following argument can't be present. /// the following argument can't be present.
/// ///
/// **NOTE:** Mutually exclusive rules take precedence over being required /// **NOTE:** Mutually exclusive rules take precedence over being overridden and required
/// by default. Mutually exclusive rules only need to be set for one of the two /// by default. Mutually exclusive rules only need to be set for one of the two
/// arguments, they do not need to be set for each. /// arguments, they do not need to be set for each.
/// ///
@ -449,6 +449,8 @@ impl<'n, 'l, 'h, 'g, 'p, 'r, 'o> Arg<'n, 'l, 'h, 'g, 'p, 'r, 'o> {
/// Sets a mutually overridable argument by name. I.e. this argument and /// Sets a mutually overridable argument by name. I.e. this argument and
/// the following argument will override each other in POSIX style /// the following argument will override each other in POSIX style
/// ///
/// **NOTE:** Mutually override rules take precedence over being required
/// by default. Mutually exclusive rules take precedence over being overridden.
/// ///
/// # Example /// # Example
/// ///
@ -469,7 +471,7 @@ impl<'n, 'l, 'h, 'g, 'p, 'r, 'o> Arg<'n, 'l, 'h, 'g, 'p, 'r, 'o> {
/// Sets an argument by name that is required when this one is presnet I.e. when /// Sets an argument by name that is required when this one is presnet I.e. when
/// using this argument, the following argument *must* be present. /// using this argument, the following argument *must* be present.
/// ///
/// **NOTE:** Mutually exclusive rules take precedence over being required /// **NOTE:** Mutually exclusive and override rules take precedence over being required
/// ///
/// ///
/// # Example /// # Example
@ -491,7 +493,7 @@ impl<'n, 'l, 'h, 'g, 'p, 'r, 'o> Arg<'n, 'l, 'h, 'g, 'p, 'r, 'o> {
/// Sets arguments by names that are required when this one is presnet I.e. when /// Sets arguments by names that are required when this one is presnet I.e. when
/// using this argument, the following arguments *must* be present. /// using this argument, the following arguments *must* be present.
/// ///
/// **NOTE:** Mutually exclusive rules take precedence over being required /// **NOTE:** Mutually exclusive and override rules take precedence over being required
/// by default. /// by default.
/// ///
/// ///