1 //! ## Configuring the Parser 2 //! 3 //! You use [`Command`][crate::Command] to start building a parser. 4 //! 5 //! ```rust 6 #![doc = include_str!("../../examples/tutorial_builder/02_apps.rs")] 7 //! ``` 8 //! 9 #![doc = include_str!("../../examples/tutorial_builder/02_apps.md")] 10 //! 11 //! You can use [`command!()`][crate::command!] to fill these fields in from your `Cargo.toml` 12 //! file. **This requires the [`cargo` feature flag][crate::_features].** 13 //! 14 //! ```rust 15 #![doc = include_str!("../../examples/tutorial_builder/02_crate.rs")] 16 //! ``` 17 #![doc = include_str!("../../examples/tutorial_builder/02_crate.md")] 18 //! 19 //! You can use [`Command`][crate::Command] methods to change the application level behavior of 20 //! clap, like [`Command::next_line_help`]. 21 //! 22 //! ```rust 23 #![doc = include_str!("../../examples/tutorial_builder/02_app_settings.rs")] 24 //! ``` 25 #![doc = include_str!("../../examples/tutorial_builder/02_app_settings.md")] 26 #![allow(unused_imports)] 27 use crate::builder::*; 28 29 pub use super::chapter_0 as previous; 30 pub use super::chapter_2 as next; 31 pub use crate::_tutorial as table_of_contents; 32