Update README.md

This commit is contained in:
Guillaume P 2018-02-04 18:43:53 +01:00 committed by GitHub
parent bc02743249
commit b33ca47ab4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
# StructOpt [![Build status](https://travis-ci.org/TeXitoi/structopt.svg?branch=master)](https://travis-ci.org/TeXitoi/structopt) [![](https://img.shields.io/crates/v/structopt.svg)](https://crates.io/crates/structopt) [![](https://docs.rs/structopt-derive/badge.svg)](https://docs.rs/structopt-derive) # StructOpt [![Build status](https://travis-ci.org/TeXitoi/structopt.svg?branch=master)](https://travis-ci.org/TeXitoi/structopt) [![](https://img.shields.io/crates/v/structopt.svg)](https://crates.io/crates/structopt) [![](https://docs.rs/structopt/badge.svg)](https://docs.rs/structopt)
Parse command line argument by defining a struct. It combines [clap](https://crates.io/crates/clap) with custom derive. Parse command line argument by defining a struct. It combines [clap](https://crates.io/crates/clap) with custom derive.
@ -6,11 +6,11 @@ Parse command line argument by defining a struct. It combines [clap](https://cr
## Documentation ## Documentation
Find it on Docs.rs: [structopt-derive](https://docs.rs/structopt-derive) and [structopt](https://docs.rs/structopt). Find it on [Docs.rs](https://docs.rs/structopt).
## Example ## Example
Add `structopt` and `structopt-derive` to your dependencies of your `Cargo.toml`: Add `structopt` to your dependencies of your `Cargo.toml`:
```toml ```toml
[dependencies] [dependencies]
structopt = "0.2" structopt = "0.2"
@ -77,7 +77,7 @@ USAGE:
For more information try --help For more information try --help
$ ./basic --help $ ./basic --help
basic 0.1.8 basic 0.2.0
Guillaume Pinot <texitoi@texitoi.eu> Guillaume Pinot <texitoi@texitoi.eu>
A basic example A basic example