Frank Benkstein
100d88fb8a
fully qualify StructOpt when flattening ( #112 )
2018-05-24 15:44:00 +02:00
Guillaume Pinot
01d34fb8d2
update syn quote and proc_macro2 + fmt
2018-05-21 16:57:35 +02:00
windwardly
87daa0bc8e
fix Cargo authors list insertion code ( #111 )
2018-05-17 09:54:56 +01:00
Guillaume Pinot
70fbd88ae7
Fix a bug when flattening an enum
...
Fix #103
2018-04-28 19:03:19 +02:00
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
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 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
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
12acd6121a
Fix #66
2018-02-12 23:46:15 +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
Guillaume Pinot
c488ebf3ae
Add COPYING to structopt-derive
...
Fix #61
2018-02-10 14:27:32 +01:00
Guillaume Pinot
0d2c765e4c
Fix a bug arround required(true)
2018-02-04 19:07:29 +01:00
Guillaume Pinot
bc02743249
Update syn and friends
2018-02-04 18:33:59 +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 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
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
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
Sergio Benitez
35423c96c4
Add 'parse(from_occurrences)' parser. Don't special case 'u64'. ( #48 )
2018-02-03 15:15:03 +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
Guillaume Pinot
43710cf969
update to 0.1.3
2017-11-01 22:35:27 +01:00
Guillaume Pinot
d1170466df
fix #9
2017-11-01 22:32:32 +01:00
Guillaume Pinot
5ba275680b
new release
2017-11-01 22:13:20 +01:00
Guillaume Pinot
96a726aeb7
Handle multiline doc comment as help message
...
fix #25
2017-11-01 22:13:20 +01:00
Guillaume Pinot
4880ccb025
Fix a privacy bug
...
Fix #24
2017-11-01 22:13:20 +01:00
Guillaume Pinot
f7a4be13ca
update to 0.1.1
2017-11-01 21:17:40 +01:00
Seebi
ebde32aa5b
Add raw attributes ( #26 )
...
* Add raw attributes
This makes it possible to call clap functions that don't take strings,
but any arbitrary value. Even functions that take more than one argument
can be called.
All attributes that are called `attribute_name_raw` are augmented to
`attribute_name(value)` without quoting `value`.
* Add tests for raw attributes and fix spelling
2017-11-01 08:41:58 +01:00
Pascal Hertleif
89f0078a0f
Format multiple authors
...
Cargo's `CARGO_PKG_AUTHORS` env var separates author names with a colon,
which is not very pretty to look at. So, let's replace it with a comma.
Clap has the same functionality it its `crate_authors!` macro but as
it's only a few lines of code I didn't want to call that.
2017-09-22 22:09:49 +02:00
Pascal Hertleif
b4494747c7
Remove some trailing spaces
2017-09-22 22:09:49 +02:00
Tshepang Lekhonkhobe
7c60c62ac5
doc: improve explanation of "subcommands"
2017-07-19 23:53:56 +02:00