Commit graph

131 commits

Author SHA1 Message Date
Guillaume P
560df68ed2 v0.2.7 2018-04-12 11:41:05 +02:00
Georg Brandl
a91411742c Support flattening common options from a struct (#92)
Fix #21
2018-04-12 11:27:57 +02:00
Guillaume P
5cb7888988 subcommand aliases example 2018-04-09 11:14:28 +02:00
Clément Renault
d59117a9fc Disallow default_value and required for Option (#88) 2018-04-06 22:33:55 +02:00
hcpl
5b883fcdaa Update syn, quote and proc-macro2 (#87)
* Remove `my_quote` and replace with plain `quote`
2018-04-01 23:24:42 +02:00
Guillaume Pinot
0a5edfd5ad v0.2.6 2018-03-31 15:50:56 +02:00
Guillaume P
91f4f41ee7 Improve the keyvalue example 2018-03-31 15:43:13 +02:00
Guillaume P
c9aff7c050 Fix link in CHANGELOG.md 2018-03-31 15:43:13 +02:00
Guillaume Pinot
94ea6452d2 Fail compilation when using default_value or required with bool
Fix #80
2018-03-30 23:35:30 +02:00
Guillaume Pinot
71e2c05ade Fix compilation with #[deny(warnings)] with the ! type
https://github.com/rust-lang/rust/pull/49039#issuecomment-376420816
2018-03-27 09:44:36 +02:00
Thomas Vincent
ce62bcaa06 Fix the --nb-cars option in the example (#85) 2018-03-19 23:45:47 +01:00
Guillaume P
c1ec5f9732 Improve the first example in the documentation
Fix #82
2018-03-15 11:14:59 +01:00
Guillaume P
73b6b672ca Add an example with at least 2 arguments 2018-03-15 10:37:28 +01:00
Guillaume P
495cc1f5e3 Add no_version example 2018-03-12 12:36:21 +01:00
Guillaume P
b043260eb3 Add an example for KEY=value argument as asked in #79 2018-03-09 16:54:26 +01:00
Guillaume Pinot
d529fe6435 v0.2.5 2018-03-07 23:50:49 +01:00
Nick Fitzgerald
f9a7651619 Use proc_macro2::Span::call_site for all quotes (#77)
This avoids breakage when deriving `StructOpt` when `proc_macro2`'s nightly
feature is enabled. See https://github.com/alexcrichton/proc-macro2/issues/67
for details.
2018-03-07 23:47:41 +01:00
Guillaume Pinot
f26ce8b769 v0.2.4 2018-02-25 11:24:21 +01:00
Christopher Durham
72784f3bd4 Re-license to Apache-2.0/MIT (#71) 2018-02-25 11:22:24 +01:00
Guillaume Pinot
f5338997d1 Fix #76 2018-02-24 12:11:08 +01:00
Guillaume Pinot
7251a0a943 Fix compilation with #![deny(missig_docs]
fix #74
2018-02-24 10:55:13 +01:00
Guillaume Pinot
c7447cd063 An empty line in a doc comment will result in a double linefeed
fix #69
2018-02-16 23:11:33 +01:00
Guillaume Pinot
78d4aa00a0 Use r#"str"# when appropriate 2018-02-15 16:19:52 +01:00
Guillaume Pinot
12acd6121a Fix #66 2018-02-12 23:46:15 +01:00
Guillaume P
615a8d324e
Update CHANGELOG.md 2018-02-11 23:53:57 +01:00
Guillaume Pinot
a488c92524 Fix #65 2018-02-11 22:28:25 +01:00
Guillaume Pinot
b80dffcc47 fix a bug around enum tuple and the about message in the global help 2018-02-11 22:24:41 +01:00
Sergio Benitez
2fadb8a20e Use proper path to 'PathBuf' in README
`PathBuf` is in `std::path`, not `std::fs`.
2018-02-11 10:00:08 +01:00
Guillaume Pinot
1fad3f8bb5 Set the date of v0.2.0 in the CHANGELOG.md 2018-02-10 21:05:42 +01:00
Guillaume Pinot
1383d64d10 correct typo 2018-02-10 20:57:33 +01:00
Guillaume Pinot
53d520264f Rename from_any to from_iter 2018-02-10 20:56:16 +01:00
Kerollmops
28bee51ec1 Add informations about StructOpt::from_any method to the changelog 2018-02-10 19:37:06 +01:00
Kerollmops
12ec0ba5e0 Add the from method to parse from any Iterator 2018-02-10 19:37:06 +01:00
Guillaume Pinot
c488ebf3ae Add COPYING to structopt-derive
Fix #61
2018-02-10 14:27:32 +01:00
Guillaume Pinot
e046a86f39 Add a link to the changelog in the readme 2018-02-04 19:29:40 +01:00
Guillaume Pinot
3e7d843d82 Add test for the options 2018-02-04 19:27:45 +01:00
Guillaume Pinot
43ef963e65 Add an example for enum in arg using clap
Fix #42
2018-02-04 19:09:43 +01:00
Guillaume Pinot
0d2c765e4c Fix a bug arround required(true) 2018-02-04 19:07:29 +01:00
Guillaume P
b33ca47ab4
Update README.md 2018-02-04 18:43:53 +01:00
Guillaume Pinot
bc02743249 Update syn and friends 2018-02-04 18:33:59 +01:00
Guillaume Pinot
0d8c4ae23b Update CHANGELOG.md 2018-02-04 15:39:27 +01:00
Guillaume Pinot
d74eee5e46 Change _raw suffix by raw() wrapping 2018-02-04 15:39:27 +01:00
Guillaume Pinot
e592f3ef9f Rewrite attributes handling, failing when attributes are not used 2018-02-04 15:39:27 +01:00
Guillaume P
279e0c7e0b
Warn on v0.2 on README 2018-02-04 11:46:16 +01:00
Guillaume Pinot
33c01e369a Add links in CHANGELOG.md 2018-02-03 17:09:39 +01:00
Guillaume Pinot
98d8cae1f1 Doc cleanups 2018-02-03 16:55:43 +01:00
Guillaume Pinot
087f7dc9cc move structopt-derive documentation to structopt 2018-02-03 16:55:43 +01:00
Guillaume Pinot
5a796774dc remove ignore for doc comment samples 2018-02-03 16:55:43 +01:00
Guillaume Pinot
17faa51112 improve the README.md example 2018-02-03 16:55:43 +01:00
Guillaume Pinot
79f2c57212 As the dummy const trick never worked as there was a bug, just remove it 2018-02-03 16:55:43 +01:00