Docs.rs
  • clap-4.4.16
    • clap 4.4.16
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • kbknapp
    • github:clap-rs:admins
    • github:rust-cli:maintainers
    • Dependencies
      • clap_builder =4.4.16 normal
      • clap_derive =4.4.7 normal
      • humantime ^2.1.0 dev
      • rustversion ^1.0.14 dev
      • shlex ^1.2.0 dev
      • snapbox ^0.4.15 dev
      • trybuild ^1.0.86 dev
      • trycmd ^0.14.19 dev
    • Versions
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

clap4.4.16

Module _tutorial

  • Modules

In crate clap

?
Change settings

Module clap::_tutorial

source ·
Available on crate feature unstable-doc only.
Expand description

Documentation: Builder Tutorial

  1. Quick Start
  2. Configuring the Parser
  3. Adding Arguments
    1. Positionals
    2. Options
    3. Flags
    4. Subcommands
    5. Defaults
  4. Validation
    1. Enumerated values
    2. Validated values
    3. Argument Relations
    4. Custom Validation
  5. Testing
  6. Next Steps

Modules

  • chapter_0
    Quick Start
  • chapter_1
    Configuring the Parser
  • chapter_2
    Adding Arguments
  • chapter_3
    Validation
  • chapter_4
    Testing
  • chapter_5
    Next Steps