Commit graph

12 commits

Author SHA1 Message Date
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