Fix formatting in README

This commit is contained in:
Simon Egersand 2018-06-30 00:31:57 +02:00 committed by Kevin K
parent 09de35f208
commit 30e6cd192a

View file

@ -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"