1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#![crate_type= "lib"]
#![cfg_attr(feature = "nightly", feature(plugin))]
//#![cfg_attr(feature = "lints", plugin(clippy))]
//#![cfg_attr(feature = "lints", allow(option_unwrap_used))]
//#![cfg_attr(feature = "lints", allow(explicit_iter_loop))]
//#![cfg_attr(feature = "lints", deny(warnings))]
// Fix until clippy on crates.io is updated to include needless_lifetimes lint
//#![cfg_attr(feature = "lints", allow(unknown_lints))]

// DOCS

#[cfg(feature = "suggestions")]
extern crate strsim;
#[cfg(feature = "color")]
extern crate ansi_term;
#[cfg(feature = "yaml")]
extern crate yaml_rust;

#[cfg(feature = "yaml")]
pub use yaml_rust::YamlLoader;
pub use args::{Arg, SubCommand, ArgMatches, ArgGroup};
pub use app::{App, AppSettings, ClapError, ClapErrorType};
pub use fmt::Format;

#[macro_use]
mod macros;
mod app;
mod args;
mod usageparser;
mod fmt;

#[cfg(test)]
mod tests;