Lines Matching refs:clap
1 clap chapter
4 …clap.svg)](https://crates.io/crates/clap) [![Crates.io](https://img.shields.io/crates/d/clap.svg)]…
6 …ux: [![Build Status](https://travis-ci.org/clap-rs/clap.svg?branch=master)](https://travis-ci.org/…
7 …33dn31nhv36/branch/master?svg=true)](https://ci.appveyor.com/project/kbknapp/clap-rs/branch/master)
13 * [documentation](https://docs.rs/clap/)
14 * [website](https://clap.rs/)
44 …clap` is used to parse *and validate* the string of command line arguments provided by a user at r…
46 …clap` provides many things 'for free' (with no configuration) including the traditional version an…
48 … `clap` parses the user provided string of arguments, it returns the matches along with any applic…
52 For a full FAQ and more in depth details, see [the wiki page](https://github.com/clap-rs/clap/wiki/…
56 …r harsh manner. All the argument parsing libraries out there (to include `clap`) have their own st…
58 #### How does `clap` compare to [getopts](https://github.com/rust-lang-nursery/getopts)?
64 …es of `getopts` are manually implementing features that `clap` provides by default. Using `clap` s…
66 #### How does `clap` compare to [docopt.rs](https://github.com/docopt/docopt.rs)?
74 #### All else being equal, what are some reasons to use `clap`? (The Pitch)
76 …clap` is as fast, and as lightweight as possible while still giving all the features you'd expect …
78 #### All else being equal, what are some reasons *not* to use `clap`? (The Anti Pitch)
80 …clap` can be very verbose. `clap` also offers so many fine-tuning knobs and dials, that learning e…
84 …ew of the features which `clap` supports, full descriptions and usage can be found in the [documen…
126 * **Automatic Version from Cargo.toml**: `clap` is fully compatible with Rust's `env!()` macro for …
127 …clap` to get typed values (i.e. `i32`, `u8`, etc.) from positional or option arguments so long as …
132 … and `-C` aren't compatible, this effectively runs `ls -C` in `clap` if you choose...`clap` also s…
137 … `clap`. For more advanced usage, such as requirements, conflicts, groups, multiple values and occ…
139 …les are functionally the same, but show different styles in which to use `clap`. These different s…
146 // This example demonstrates clap's full 'builder pattern' style of creating arguments which is
149 extern crate clap;
150 use clap::{Arg, App, SubCommand};
249 Simply change your `clap = "2.33"` to `clap = {version = "2.33", features = ["yaml"]}`.
256 // This example demonstrates clap's building from YAML style of creating arguments which is far
259 extern crate clap;
260 use clap::App;
313 * Clone the repository `$ git clone https://github.com/clap-rs/clap && cd clap-rs/`
321 To test out `clap`'s default auto-generated help/version follow these steps:
323 * Add `clap` to your `Cargo.toml`
327 clap = "2"
333 extern crate clap;
334 use clap::App;
346 For full usage, add `clap` as a dependency in your `Cargo.toml` () to use from crates.io:
350 clap = "~2.33"
355 Then add `extern crate clap;` to your crate root.
357 Define a list of valid arguments for your program (see the [documentation](https://docs.rs/clap/) o…
372 [dependencies.clap]
380 [dependencies.clap]
391 * **"unstable"**: Enables unstable `clap` features that may change from release to release
396 The following graphic depicts `clap`s dependency graph (generated using [cargo-graph](https://githu…
402 ![clap dependencies](clap_dep_graph.png)
406 You can find complete documentation on the [docs.rs](https://docs.rs/clap/) for this project.
422 Because `clap` takes SemVer and compatibility seriously, this is the official policy regarding brea…
424 …clap` will pin the minimum required version of Rust to the CI builds. Bumping the minimum version …
430 clap = "~2.33"
447 clap = "~2.33.0"
451 clap = "2.33.0"
458 …clap` will officially support current stable Rust, minus two releases, but may work with prior rel…
460 At the 1.42.0 stable release, `clap` will be guaranteed to compile with 1.40.0 and beyond, etc.
466 `clap` takes a similar policy to Rust and will bump the major version number upon breaking changes …
474 A best effort is made to ensure that `clap` will work on projects targeting `wasm32-unknown-unknown…
479 `clap` is licensed under the MIT license. Please read the [LICENSE-MIT](LICENSE-MIT) file in this r…
483 …ch can be used with `clap`, I recommend checking them all out! If you've got a crate that would be…
485 …stringly typed" and it uses `clap` behind the scenes! (*Note*: There is work underway to pull this…
490 `clap` follows semantic versioning, so breaking changes should only happen upon major version bumps…