summaryrefslogtreecommitdiffstats
path: root/vendor/clap/src/_derive/_tutorial/chapter_0.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/clap/src/_derive/_tutorial/chapter_0.rs')
-rw-r--r--vendor/clap/src/_derive/_tutorial/chapter_0.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/vendor/clap/src/_derive/_tutorial/chapter_0.rs b/vendor/clap/src/_derive/_tutorial/chapter_0.rs
new file mode 100644
index 000000000..d6806949c
--- /dev/null
+++ b/vendor/clap/src/_derive/_tutorial/chapter_0.rs
@@ -0,0 +1,25 @@
+//! ## Quick Start
+//!
+//! You can create an application declaratively with a `struct` and some
+//! attributes.
+//!
+//! First, ensure `clap` is available with the [`derive` feature flag][crate::_features]:
+//! ```console
+//! $ cargo add clap --features derive
+//! ```
+//!
+//! ```rust
+#![doc = include_str!("../../../examples/tutorial_derive/01_quick.rs")]
+//! ```
+//!
+#![doc = include_str!("../../../examples/tutorial_derive/01_quick.md")]
+//!
+//! See also
+//! - [FAQ: When should I use the builder vs derive APIs?][crate::_faq#when-should-i-use-the-builder-vs-derive-apis]
+//! - The [cookbook][crate::_cookbook] for more application-focused examples
+
+#![allow(unused_imports)]
+use crate::builder::*;
+
+pub use super::chapter_1 as next;
+pub use crate::_tutorial as table_of_contents;