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
Guillaume Pinot
be60de036b
structopt reexport structopt_derive
...
As using structopt without structopt_derive is quite meaningless, reexport
structopt_derive, symplifying the usage.
Inspired by the failure crate.
fix #45
2018-02-03 16:55:43 +01:00
Guillaume P
9cb1eb7137
Update CHANGELOG.md
2018-02-03 16:53:31 +01:00
Guillaume Pinot
7975343a03
Support 1-uple enum variant as subcommand
...
This is a breaking change as it modifies the StructOpt trait.
fix #38
2018-02-03 15:32:55 +01:00
Guillaume P
672438a744
Update CHANGELOG.md for #48
2018-02-03 15:31:51 +01:00
Sergio Benitez
35423c96c4
Add 'parse(from_occurrences)' parser. Don't special case 'u64'. ( #48 )
2018-02-03 15:15:03 +01:00
Guillaume P
76821ba7b2
Create CHANGELOG.md
...
fix #52
2018-01-31 23:14:33 +01:00
Sune Kirkeby
00a1e13fea
Allow opting out of clap default features. ( #46 )
2018-01-23 15:47:06 +01:00
Xavier Bestel
cc6dfd2e54
Add doc on colored help ( #40 )
...
Added a note about `clap::App`'s _raw methods, and an example specifically about colored help text.
2017-12-05 15:20:17 +01:00
Guillaume Pinot
374f9080a8
v0.1.6
2017-11-25 23:45:02 +01:00
Guillaume Pinot
3186513b57
Improve doc about positional arguments
...
fix #33
2017-11-25 23:38:37 +01:00
Guillaume Pinot
5bf0d2ffb5
Don't call author, version and about if empty argument
...
fix #31
2017-11-25 23:36:05 +01:00
Guillaume Pinot
dca4b8daab
Improve documentation.
...
Fix #30
2017-11-23 16:03:50 +01:00
Guillaume Pinot
1173955d37
v0.1.5
2017-11-14 15:19:33 +01:00
Guillaume Pinot
227d1fa73c
fix bug with optional subsubcommand and Enum
2017-11-14 15:18:13 +01:00
Guillaume Pinot
f24fcb19a8
v0.1.4
2017-11-09 10:24:18 +01:00
kennytm
13fc4fb66a
Implement custom string parser from either &str
or &OsStr
. ( #28 )
...
* Implement custom string parser from either &str or &OsStr.
Fix #2 .
Fix #3 .
* Addressed review comments.
2017-11-09 10:23:02 +01:00