mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
Fix formatting in README
This commit is contained in:
parent
09de35f208
commit
30e6cd192a
1 changed files with 2 additions and 2 deletions
|
@ -408,14 +408,14 @@ To try out the pre-built examples, use the following steps:
|
||||||
* Compile the example `$ cargo build --example <EXAMPLE>`
|
* Compile the example `$ cargo build --example <EXAMPLE>`
|
||||||
* Run the help info `$ ./target/debug/examples/<EXAMPLE> --help`
|
* Run the help info `$ ./target/debug/examples/<EXAMPLE> --help`
|
||||||
* Play with the arguments!
|
* Play with the arguments!
|
||||||
* You can also do a onetime run via `$ cargo run --example <EXAMPLE> -- [args to example]
|
* You can also do a onetime run via `$ cargo run --example <EXAMPLE> -- [args to example]`
|
||||||
|
|
||||||
### BYOB (Build Your Own Binary)
|
### BYOB (Build Your Own Binary)
|
||||||
|
|
||||||
To test out `clap`'s default auto-generated help/version follow these steps:
|
To test out `clap`'s default auto-generated help/version follow these steps:
|
||||||
* Create a new cargo project `$ cargo new fake --bin && cd fake`
|
* Create a new cargo project `$ cargo new fake --bin && cd fake`
|
||||||
* Add `clap` to your `Cargo.toml`
|
* Add `clap` to your `Cargo.toml`
|
||||||
*
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = "3.0.0-alpha1"
|
clap = "3.0.0-alpha1"
|
||||||
|
|
Loading…
Reference in a new issue