Docs.rs
  • clap-4.1.4
    • clap 4.1.4
    • Permalink
    • 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
      • backtrace ^0.3 normal
      • bitflags ^1.2 normal
      • clap_derive =4.1.0 normal
      • clap_lex ^0.3.0 normal
      • is-terminal ^0.4.1 normal
      • once_cell ^1.12.0 normal
      • strsim ^0.10 normal
      • termcolor ^1.1.1 normal
      • terminal_size ^0.2.1 normal
      • unicase ^2.6 normal
      • unicode-width ^0.1.9 normal
      • humantime ^2 dev
      • rustversion ^1 dev
      • shlex ^1.1.0 dev
      • snapbox ^0.4 dev
      • static_assertions ^1.1.0 dev
      • trybuild ^1.0.73 dev
      • trycmd ^0.14.9 dev
      • unic-emoji-char ^0.9.0 dev
    • Versions
      • 4.1.4
      • 4.1.3
      • 4.1.2
      • 4.1.1
      • 4.1.0
      • 4.0.32
      • 4.0.31
      • 4.0.30
      • 4.0.29
      • 4.0.28
      • 4.0.27
      • 4.0.26
      • 4.0.25
      • 4.0.24
      • 4.0.23
      • 4.0.22
      • 4.0.21
      • 4.0.20
      • 4.0.19
      • 4.0.18
      • 4.0.17
      • 4.0.16
      • 4.0.15
      • 4.0.14
      • 4.0.13
      • 4.0.12
      • 4.0.11
      • 4.0.10
      • 4.0.9
      • 4.0.8
      • 4.0.7
      • 4.0.6
      • 4.0.5
      • 4.0.4
      • 4.0.3
      • 4.0.2
      • 4.0.1
      • 4.0.0
      • 4.0.0-rc.3
      • 4.0.0-rc.2
      • 4.0.0-rc.1
      • 3.2.23
      • 3.2.22
      • 3.2.21
      • 3.2.20
      • 3.2.19
      • 3.2.18
      • 3.2.17
      • 3.2.16
      • 3.2.15
      • 3.2.14
      • 3.2.13
      • 3.2.12
      • 3.2.11
      • 3.2.10
      • 3.2.8
      • 3.2.7
      • 3.2.6
      • 3.2.5
      • 3.2.4
      • 3.2.3
      • 3.2.2
      • 3.2.1
      • 3.2.0
      • 3.1.18
      • 3.1.17
      • 3.1.16
      • 3.1.15
      • 3.1.14
      • 3.1.13
      • 3.1.12
      • 3.1.11
      • 3.1.10
      • 3.1.9
      • 3.1.8
      • 3.1.7
      • 3.1.6
      • 3.1.5
      • 3.1.4
      • 3.1.3
      • 3.1.2
      • 3.1.1
      • 3.1.0
      • 3.0.14
      • 3.0.13
      • 3.0.12
      • 3.0.11
      • 3.0.10
      • 3.0.9
      • 3.0.8
      • 3.0.7
      • 3.0.6
      • 3.0.5
      • 3.0.4
      • 3.0.3
      • 3.0.2
      • 3.0.1
      • 3.0.0
      • 3.0.0-rc.13
      • 3.0.0-rc.12
      • 3.0.0-rc.11
      • 3.0.0-rc.10
      • 3.0.0-rc.9
      • 3.0.0-rc.8
      • 3.0.0-rc.7
      • 3.0.0-rc.6
      • 3.0.0-rc.5
      • 3.0.0-rc.4
      • 3.0.0-rc.3
      • 3.0.0-rc.2
      • 3.0.0-rc.1
      • 3.0.0-rc.0
      • 3.0.0-beta.5
      • 3.0.0-beta.4
      • 3.0.0-beta.3
      • 3.0.0-beta.2
      • 2.34.0
      • 2.33.4
      • 2.33.3
      • 2.33.2
      • 2.33.1
      • 2.33.0
      • 2.32.0
      • 2.31.2
      • 2.31.1
      • 2.31.0
      • 2.30.0
      • 2.29.4
      • 2.29.3
      • 2.29.2
      • 2.29.1
      • 2.29.0
      • 2.28.0
      • 2.27.1
      • 2.27.0
      • 2.26.2
      • 2.26.1
      • 2.26.0
      • 2.25.1
      • 2.25.0
      • 2.24.2
      • 2.24.1
      • 2.24.0
      • 2.23.3
      • 2.23.2
      • 2.23.1
      • 2.23.0
      • 2.22.2
      • 2.22.1
      • 2.22.0
      • 2.21.3
      • 2.21.2
      • 2.21.1
      • 2.21.0
      • 2.20.5
      • 2.20.4
      • 2.20.3
      • 2.20.2
      • 2.20.1
      • 2.20.0
      • 2.19.3
      • 2.19.2
      • 2.19.1
      • 2.19.0
      • 2.18.0
      • 2.17.1
      • 2.17.0
      • 2.16.4
      • 2.16.3
      • 2.16.2
      • 2.16.1
      • 2.16.0
      • 2.15.0
      • 2.14.1
      • 2.14.0
      • 2.13.0
      • 2.12.1
      • 2.12.0
      • 2.11.3
      • 2.11.2
      • 2.11.1
      • 2.11.0
      • 2.10.4
      • 2.10.3
      • 2.10.2
      • 2.10.0
      • 2.9.3
      • 2.9.2
      • 2.9.1
      • 2.9.0
      • 2.8.0
      • 2.7.1
      • 2.7.0
      • 2.6.0
      • 2.5.2
      • 2.5.1
      • 2.5.0
      • 2.4.3
      • 2.4.0
      • 2.3.0
      • 2.2.6
      • 2.2.5
      • 2.2.4
      • 2.2.3
      • 2.2.2
      • 2.2.1
      • 2.2.0
      • 2.1.2
      • 2.1.1
      • 2.1.0
      • 2.0.6
      • 2.0.5
      • 2.0.4
      • 2.0.3
      • 2.0.2
      • 2.0.1
      • 2.0.0
      • 1.5.6
      • 1.5.5
      • 1.5.4
      • 1.5.3
      • 1.5.2
      • 1.5.1
      • 1.4.7
      • 1.4.5
      • 1.4.3
      • 1.4.2
      • 1.4.1
      • 1.4.0
      • 1.3.2
      • 1.3.1
      • 1.3.0
      • 1.2.5
      • 1.2.4
      • 1.2.3
      • 1.2.2
      • 1.2.1
      • 1.2.0
      • 1.1.6
      • 1.1.5
      • 1.1.4
      • 1.1.3
      • 1.1.2
      • 1.1.1
      • 1.1.0
      • 1.0.3
      • 1.0.2
      • 1.0.1
      • 1.0.0
      • 1.0.0-beta
      • 0.11.0
      • 0.10.5
      • 0.10.3
      • 0.10.2
      • 0.10.1
      • 0.10.0
      • 0.9.2
      • 0.9.1
      • 0.9.0
      • 0.8.6
      • 0.8.5
      • 0.8.4
      • 0.8.3
      • 0.8.2
      • 0.8.1
      • 0.8.0
      • 0.7.6
      • 0.7.5
      • 0.7.4
      • 0.7.3
      • 0.7.2
      • 0.6.9
      • 0.6.8
      • 0.6.7
      • 0.6.6
      • 0.6.5
      • 0.6.4
      • 0.6.3
      • 0.6.2
      • 0.6.1
      • 0.5.14
      • 0.5.12
      • 0.5.11
      • 0.5.10
      • 0.5.9
      • 0.5.8
      • 0.5.7
      • 0.5.6
      • 0.5.5
      • 0.5.4
      • 0.5.3
      • 0.5.2
      • 0.5.1
      • 0.5.0
      • 0.4.18
      • 0.4.17
      • 0.4.16
      • 0.4.15
      • 0.4.14
      • 0.4.13
      • 0.4.10
      • 0.4.9
      • 0.4.7
      • 0.4.6
      • 0.4.4
      • 0.4.3
      • 0.4.2
      • 0.4.1
      • 0.4.0
      • 0.3.7
      • 0.3.6
      • 0.3.5
    • 100% of the crate is documented
  • Platform
    • x86_64-unknown-linux-gnu
    • i686-unknown-linux-gnu
    • i686-pc-windows-msvc
    • x86_64-pc-windows-msvc
    • x86_64-apple-darwin
  • Feature flags
  • Rust
    • About docs.rs
    • Privacy policy
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

Crate clap

  • Macros
  • Structs
  • Enums
  • Traits
  • Type Definitions
?
Change settings

List of all items

Structs

  • Arg
  • ArgGroup
  • ArgMatches
  • Command
  • Id
  • builder::Arg
  • builder::ArgGroup
  • builder::BoolValueParser
  • builder::BoolishValueParser
  • builder::Command
  • builder::EnumValueParser
  • builder::FalseyValueParser
  • builder::MapValueParser
  • builder::NonEmptyStringValueParser
  • builder::OsStr
  • builder::OsStringValueParser
  • builder::PathBufValueParser
  • builder::PossibleValue
  • builder::PossibleValuesParser
  • builder::RangedI64ValueParser
  • builder::RangedU64ValueParser
  • builder::Str
  • builder::StringValueParser
  • builder::StyledStr
  • builder::ValueParser
  • builder::ValueRange
  • error::DefaultFormatter
  • error::Error
  • error::KindFormatter
  • error::RichFormatter
  • parser::ArgMatches
  • parser::IdsRef
  • parser::Indices
  • parser::RawValues
  • parser::Values
  • parser::ValuesRef

Enums

  • ArgAction
  • ColorChoice
  • ValueHint
  • builder::ArgAction
  • builder::ArgPredicate
  • builder::Resettable
  • builder::ValueHint
  • error::ContextKind
  • error::ContextValue
  • error::ErrorKind
  • parser::MatchesError
  • parser::ValueSource

Traits

  • Args
  • CommandFactory
  • FromArgMatches
  • Parser
  • Subcommand
  • ValueEnum
  • builder::IntoResettable
  • builder::TypedValueParser
  • builder::ValueParserFactory
  • error::ErrorFormatter

Macros

  • arg
  • command
  • crate_authors
  • crate_description
  • crate_name
  • crate_version
  • value_parser

Type Definitions

  • Error
  • error::Result