bdrck_params/
lib.rs

1// Copyright 2015 Axel Rasmussen
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#[macro_use]
16extern crate error_chain;
17#[macro_use]
18extern crate lazy_static;
19#[macro_use]
20extern crate log;
21
22pub mod argument;
23pub mod command;
24pub mod error;
25pub mod io;
26pub mod main_impl;
27pub mod option;
28pub mod parse_and_execute;
29
30mod help;
31mod parsed_parameters;
32
33#[cfg(test)]
34mod tests;
35
36// Re-export most commonly used symbols, to allow using this library with just
37// one "use".
38
39pub use argument::Argument;
40pub use command::{Command, CommandCallback, CommandResult, ExecutableCommand};
41pub use main_impl::{main_impl_multiple_commands, main_impl_single_command};
42pub use option::Option;