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
34
35
36
37
38
39
40
//! easily build command line apps.
//!
//! # Examples
//! ```
//! use ecla::App;
//!
//! const HELP: &'static str = "This is help message";
//! const VERSION: &'static str = "1.0.0";
//!
//! fn main() {
//! let app = App::new(HELP, VERSION);
//! if let Some(command) = app.get_command("test") {
//! if let Some(flag) = command.get_flag(&["-a", "--all"]) {
//! println!("You have run subcommand test with flag -a or --all");
//! } else {
//! println!("You have run subcommand test with no flag");
//! }
//! } else {
//! app.show_unknown_or_help();
//! }
//! }
//! ```
extern crate elog;
pub use App;
pub use Command;
pub use Flag;