Kevin K
e8d8121c06
refactor: renames some of the uses in examples dir
2018-07-03 14:55:13 -04:00
Kevin K
49c975a400
refactor: renames uses in tests
2018-07-02 15:06:46 -04:00
Kevin K
25d52ea56a
refactor: renames use cases in examples dir
2018-07-02 14:45:17 -04:00
Kevin K
0be39eebfa
chore: initial merge of both repos
2018-07-02 11:22:27 -04:00
Kevin K
44fad54b2f
chore: moves structopt files into temp dir
2018-07-02 10:59:08 -04:00
Bruce Adams
ea76fa1b1b
Add a simple group example ( #120 )
2018-06-28 08:12:58 +02:00
Guillaume P
de7fc7a08e
fmt
2018-06-05 18:16:17 +02:00
Guillaume Pinot
01d34fb8d2
update syn quote and proc_macro2 + fmt
2018-05-21 16:57:35 +02:00
Guillaume P
be8543813e
Add an example using clap group.
2018-04-18 18:53:51 +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
Guillaume P
91f4f41ee7
Improve the keyvalue example
2018-03-31 15:43:13 +02: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
Christopher Durham
72784f3bd4
Re-license to Apache-2.0/MIT ( #71 )
2018-02-25 11:22:24 +01:00
Guillaume Pinot
7251a0a943
Fix compilation with #![deny(missig_docs]
...
fix #74
2018-02-24 10:55:13 +01:00
Guillaume Pinot
78d4aa00a0
Use r#"str"#
when appropriate
2018-02-15 16:19:52 +01:00
Guillaume Pinot
1383d64d10
correct typo
2018-02-10 20:57:33 +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
d74eee5e46
Change _raw
suffix by raw()
wrapping
2018-02-04 15:39:27 +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
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 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
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
William Yao
91fb4a40e4
allow for documentation to be placed on subcommands
2017-07-17 11:45:31 +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 Pinot
d3872e0984
add example.rs
2017-02-09 22:51:41 +01:00
Guillaume Pinot
e3492f74fa
support custom name
2017-02-07 23:34:40 +01:00
Guillaume Pinot
b0cf3af9c9
example with args
2017-02-07 01:52:26 +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