clap/examples
Kevin K b7793a2f4d Issues rollup (#637)
* feat: adds App::with_defaults to automatically use crate_authors! and crate_version! macros

One can now use

```rust
let a = App::with_defaults("My Program");

// same as
let a2 = App::new("My Program")
	.version(crate_version!())
	.author(crate_authors!());
```

Closes #600

* imp(YAML Errors): vastly improves error messages when using YAML

When errors are made while developing, the panic error messages have
been improved instead of relying on the default panic message which is
extremely unhelpful.

Closes #574

* imp(Completions): uses standard conventions for bash completion files, namely '{bin}.bash-completion'

Closes #567

* imp(Help): automatically moves help text to the next line and wraps when term width is determined to be too small, or help text is too long

Now `clap` will check if it should automatically place long help
messages on the next line after the flag/option. This is determined by
checking to see if the space taken by flag/option plus spaces and values
doesn't leave enough room for the entirety of the help message, with the
single exception of of if the flag/option/spaces/values is less than 25%
of the width.

Closes #597

* tests: updates help tests to new forced new line rules

* fix(Groups): fixes some usage strings that contain both args in groups and ones that conflict with each other

Args that conflict *and* are in a group will now only display in the
group and not in the usage string itself.

Closes #616

* chore: updates dep graph

Closes #633

* chore: clippy run

* style: changes debug header to match other Rust projects

* chore: increase version
2016-08-27 23:42:31 -04:00
..
01a_quick_example.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
01b_quick_example.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
01c_quick_example.rs tests(v2): fixing more tests on the new v2 base 2016-01-28 11:45:31 -05:00
02_apps.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
03_args.rs chore: fixes doc and style mistakes 2016-01-28 21:58:40 -05:00
04_using_matches.rs refactor(Examples): corrects compiler warnings about names 2015-08-30 15:43:57 -04:00
05_flag_args.rs refactor(Examples): corrects compiler warnings about names 2015-08-30 15:43:57 -04:00
06_positional_args.rs refactor(Examples): corrects compiler warnings about names 2015-08-30 15:43:57 -04:00
07_option_args.rs refactor(v2): improving macros for code dedup 2016-01-28 11:45:31 -05:00
08_subcommands.rs refactor(Examples): corrects compiler warnings about names 2015-08-30 15:43:57 -04:00
09_auto_version.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
10_default_values.rs docs(Examples): adds better usage examples instead of having unused variables 2015-08-30 16:29:45 -04:00
11_only_specific_values.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
12_typed_values.rs tests(v2): fixing more tests on the new v2 base 2016-01-28 11:45:31 -05:00
13a_enum_values_automatic.rs imp(arg_enum): enum declared with arg_enum returns [&'static str; #] instead of Vec 2016-01-31 08:23:34 -05:00
13b_enum_values_manual.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
14_groups.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
15_custom_validator.rs docs: updates examples for 2x release 2016-01-28 11:46:12 -05:00
16_app_settings.rs docs(Examples): adds better usage examples instead of having unused variables 2015-08-30 16:29:45 -04:00
17_yaml.rs tests(yaml): use scope wide attribute 2016-01-11 21:13:14 -08:00
17_yaml.yml Issues rollup (#637) 2016-08-27 23:42:31 -04:00
18_builder_macro.rs tests(v2): fixing more tests on the new v2 base 2016-01-28 11:45:31 -05:00
19_auto_authors.rs removed unstable gate from crate_authors 2016-07-23 15:56:42 -07:00
20_aliases.rs test: adds failing doc test 2016-05-11 20:16:56 +02:00