Alexander Kuvaev
4ba6249c3c
examples: add clap_app quick example
2015-09-09 16:21:59 +03:00
James McGlashan
443841b012
feat: Builder macro to assist with App/Arg/Group/SubCommand building
2015-09-08 22:53:31 +10:00
Alexander Kuvaev
9b84862229
examples(17_yaml): fixed example
2015-09-02 01:09:08 +03:00
Kevin K
82a09abb32
Merge branch 'issue-205' of https://github.com/Vinatorul/clap-rs into vin-issue-205
2015-09-01 00:05:54 -04:00
Kevin K
0e53642a85
chore: fixes .travis.yml for building with yaml feature of clap
...
Closes #80
2015-08-31 23:59:35 -04:00
Kevin K
ab41d7f382
docs(YAML): adds examples for using YAML to build a CLI
2015-08-31 23:57:35 -04:00
Kevin K
8cbacd8883
docs(Examples): adds better usage examples instead of having unused variables
2015-08-30 16:29:45 -04:00
Kevin K
4f836ee5ef
refactor(Examples): corrects compiler warnings about names
...
Closes #204
2015-08-30 15:43:57 -04:00
Alexander Kuvaev
5a8e341e8e
refactor(ArgGroup): changed Vec<&str> using to &[&str]
2015-08-30 20:22:26 +03:00
SungRim Huh
12705079ca
examples: Add AppSettings example
2015-08-27 23:35:08 -05:00
SungRim Huh
b9997d1fca
examples: add custom validator example
2015-08-27 10:50:39 -05:00
SungRim Huh
d4f1b740ed
examples: fix indentation
2015-08-27 10:50:05 -05:00
Kevin K
a5b8b3584b
test: fixes tests for 1.0 and deprecated functions
2015-06-29 22:21:47 -04:00
Kevin K
ebf442ebeb
docs: updates docs to new version flag defaults
2015-06-16 20:46:11 -04:00
Tshepang Lekhonkhobe
8891d92917
docs(clap): fix typos caught by codespell
...
Thanks to [tshepang](https://github.com/tshepang ) for catching these!
2015-05-05 22:02:14 -04:00
Kevin K
0cc2f69839
feat(arg): allow other types besides Vec for multiple value settings
...
Breaking Change
Instead of requiring a Vec<&str> for various Arg::*_all() and
Arg::possible_values() methods this
commit now requires a generic IntoIterator<Item=AsRef<str>> which allows
things such as constant arrays. This change requires that any
Arg::*_all() methods be changed from vec!["val", "val"] -> let vals =
["val", "val"]; some_arg.possible_values(&vals) (or vals.iter()).
Closes #87
2015-04-29 17:52:13 -04:00
Kevin K
39d744cefd
docs(groups): adds examples of ArgGroup usage
2015-04-27 23:18:58 -04:00
Kevin K
c630969aa3
feat(macros.rs): add macro to get version from Cargo.toml
2015-04-19 14:22:03 -04:00
Kevin K
31b476ca99
refactor(arg.rs): remove deprecation warnings for stable rustc
2015-04-18 13:37:01 -04:00
Kevin K
2c499f8015
feat(macros): add ability to create enums pub or priv with derives
...
Err type of FromStr trait changed from &'a str->String in order
to allow showing valid values on failed parse
Breaking Change
2015-04-17 11:17:19 -04:00
Kevin K
fb672aff56
feat(macros): add macro to create custom enums to use as types
2015-04-16 14:21:32 -04:00
Kevin K
178c50ffe6
docs(examples): add example covering custom enums
2015-04-16 13:31:50 -04:00
Kevin K
1a192521b6
docs(clap): fix typo core->std
2015-04-16 12:53:05 -04:00
Kevin K.
77fdd5ffa7
docs(12_TypedValues.rs): fix typo in trait name
2015-04-16 11:21:58 -04:00
Kevin K
f246fa1778
docs(examples): add examples for value_t! and value_t_or_exit! macros
2015-04-14 15:37:21 -04:00
Kevin K
b389743672
docs(clap): improve examples and documentation as well as include new from_usage() features
2015-04-13 22:18:50 -04:00
Kevin K
62ec95aa1d
docs(examples): add examples on default values and specific value sets
2015-04-01 12:57:26 -04:00
Kevin K
b0a47a5004
Added auto-version example
2015-03-23 22:53:33 -04:00
Kevin K
8a3a2f42bf
Added SubCommand examples
2015-03-20 15:06:44 -04:00
Kevin K
ba55418f7e
Added option examples
2015-03-20 14:45:57 -04:00
Kevin K
464b2aa1a3
Added more examples
2015-03-20 12:47:28 -04:00
Kevin K
9d2d384b3a
Initial commit for better examples
2015-03-19 17:55:13 -04:00
Kevin K
641972c3ad
Inc'ed version after PR #15 and #16 - fixed formatting error in examples
2015-03-18 22:00:01 -04:00
Kevin K
9f4cdc9fa3
Changed tabs to spaces
2015-03-16 14:47:09 -04:00
Kevin K.
bb973008a8
Update myapp.rs
2015-03-16 09:53:29 -04:00
Kevin K.
7599ea29f2
Changed tabs to 4 spaces added comments
2015-03-16 09:52:18 -04:00
Kevin K
65a8a4f045
Added support for subcommands
2015-03-15 17:17:52 -04:00