Skip to content

Commit

Permalink
docs(example): Remove builder references
Browse files Browse the repository at this point in the history
Fixes #3489
  • Loading branch information
epage committed Feb 18, 2022
1 parent 2f2b1c2 commit bc2be89
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions examples/tutorial_derive/README.md
Expand Up @@ -66,7 +66,7 @@ In addition to this tutorial, see the [derive reference](../derive_ref/README.md

## Configuring the Parser

You use the `Command` the start building a parser.
You use derive `Parser` the start building a parser.

[Example:](02_apps.rs)
```console
Expand All @@ -89,7 +89,7 @@ MyApp 1.0

```

You can use `command!()` to fill these fields in from your `Cargo.toml` file.
You can use `#[clap(author, version, about)]` attribute defaults to fill these fields in from your `Cargo.toml` file.

[Example:](02_crate.rs)
```console
Expand All @@ -111,7 +111,7 @@ clap [..]

```

You can use `Command` methods to change the application level behavior of clap.
You can use derive attributes to change the application level behavior of clap.

[Example:](02_app_settings.rs)
```console
Expand Down Expand Up @@ -266,7 +266,7 @@ name: Some("bob")

### Subcommands

Subcommands are defined as `Command`s that get added via `Command::subcommand`. Each
Subcommands are derived with `Subcommand` that get added via `#[clap(subcommand)]` attribute. Each
instance of a Subcommand can have its own version, author(s), Args, and even its own
subcommands.

Expand Down Expand Up @@ -326,7 +326,7 @@ SUBCOMMANDS:

```

Because we set `Command::propagate_version`:
Because we added `#[clap(propagate_version = true)]`:
```console
$ 03_04_subcommands_derive --version
clap [..]
Expand All @@ -339,8 +339,8 @@ $ 03_04_subcommands_derive add --version
### Defaults

We've previously showed that arguments can be `required` or optional. When
optional, you work with a `Option` and can `unwrap_or`. Alternatively, you can
set `Arg::default_value`.
optional, you work with an `Option` and can `unwrap_or`. Alternatively, you can
set `#[clap(default_value_t)]`.

[Example:](03_05_default_values.rs)
```console
Expand Down

0 comments on commit bc2be89

Please sign in to comment.