Commit graph

37 commits

Author SHA1 Message Date
William Yao
a20a9e7be0 fix hyphenated subcommands 2017-07-17 11:45:31 +02:00
William Yao
b295234d5d add test suite for nested subcommands (texitoi/structopt#1) 2017-07-17 11:45:31 +02:00
William Yao
91e2d28e81 allow for optional subcommands (texitoi/structopt#1) 2017-07-17 11:45:31 +02:00
William Yao
baa96165f1 ignore unused matches for empty subcommands (texitoi/structopt#1) 2017-07-17 11:45:31 +02:00
William Yao
c010cf0266 add ability to put in nested subcommands (texitoi/structopt#1) 2017-07-17 11:45:31 +02:00
William Yao
e00e263f23 add test for subcommand parsing (texitoi/structopt#1) 2017-07-17 11:45:31 +02:00
William Yao
00c659b9c6 lifetime fix 2017-07-17 11:45:31 +02:00
William Yao
30a3b3145c prototype enum stuff? 2017-07-17 11:45:31 +02:00
William Yao
fd67b01466 factor out code generation that's needed for enums 2017-07-17 11:45:31 +02:00
William Yao
08aeb9b1fb skeleton of enum impl 2017-07-17 11:45:31 +02:00
William Yao
00f313b5d1 split impl_structopt into struct and enum branches 2017-07-17 11:45:31 +02:00
William Yao
a4826404f3 separate creating app and adding arguments 2017-07-17 11:45:31 +02:00
Guillaume Pinot
859ac77f4e Update to 0.0.5 (oups...) 2017-06-16 17:12:21 +02:00
Guillaume Pinot
51e0c36278 update to 0.0.4 2017-06-16 13:40:59 +02:00
Pascal Hertleif
483396dc97 Remove unneeded lifetime annotation 2017-06-16 12:31:37 +02:00
Pascal Hertleif
2075ee8328 Favor help argument over doc comments
This changes the behavior of `from_attr_or_env` (used for clap
application settings) to favor the last occurrence of the requested
attribute. This is what repeatedly calling the same methods to set field
properties does implicitly.
2017-06-16 12:31:37 +02:00
Pascal Hertleif
c66413a082 WIP: Allow doc comment to set help text
This treats doc comments as `help`/`about` attributes, which may lead to
concatenating the original help text with the doc comment.
2017-06-16 12:31:37 +02:00
Guillaume P
52d2550d4e Update README.md 2017-02-11 13:56:11 +01:00
Guillaume Pinot
66e75fe3cc Don't ask to the user to import the good clap version 2017-02-11 13:39:09 +01:00
Guillaume Pinot
6d4aa55c60 Correct default values using cargo environment variables 2017-02-11 00:32:01 +01:00
Guillaume P
0646262757 corrections on README.md 2017-02-10 01:28:00 +01:00
Guillaume Pinot
36cfbc4c10 docopt badge on structopt-derive in README.md 2017-02-10 01:23:09 +01:00
Guillaume Pinot
6d73942385 add travis badge to cargo 2017-02-10 01:19:16 +01:00
Guillaume Pinot
72d9c576d3 desactivate doctest on structopt-derive doc 2017-02-10 01:18:47 +01:00
Guillaume Pinot
258a85c710 document structop-derive 2017-02-10 01:14:39 +01:00
Guillaume Pinot
d3872e0984 add example.rs 2017-02-09 22:51:41 +01:00
Guillaume P
c9e7ad90df Presentation in README.md 2017-02-09 22:31:06 +01:00
Guillaume Pinot
e3492f74fa support custom name 2017-02-07 23:34:40 +01:00
Guillaume Pinot
8d095c609d refactor 2017-02-07 23:03:13 +01:00
Guillaume Pinot
b0cf3af9c9 example with args 2017-02-07 01:52:26 +01:00
Guillaume Pinot
fdc18d07bb add flag tests 2017-02-07 01:41:16 +01:00
Guillaume Pinot
4e4bbabfa7 manage not require extern crate clap from user 2017-02-07 00:19:18 +01:00
Guillaume Pinot
afd812cf5a validator + default value 2017-02-06 23:55:46 +01:00
Guillaume Pinot
edc9d69f03 support attrs in struct 2017-02-06 01:00:27 +01:00
Guillaume Pinot
1196571909 use attributes 2017-02-05 02:06:39 +01:00
Guillaume Pinot
36b39727b1 support different options 2017-02-04 01:43:44 +01:00
Guillaume Pinot
3ec065a12a Init project 2017-02-03 01:17:31 +01:00