clap/tests
Benjamin Kästner 8cb9a7d486 Add new "regex" feature
This commit introduces a new feature called `"regex"`. It adds a new
function `validator_regex` to `Arg` and was inspired by the discussion
in #1968. The name `validator_regex` was chosen instead of
`regex_validator` to make sure that the developer keeps in mind that
there may only be a single `Validator` on an `Arg`.

The feature can be used with YAML files, however there is no proper
pattern in `clap_app!` (yet).
2020-08-26 17:54:54 +02:00
..
fixtures Add new "regex" feature 2020-08-26 17:54:54 +02:00
app_from_crate.rs style: rename ErrorKind::{VersionDisplayed, HelpDisplayed} to present tense 2020-07-20 10:27:07 +09:00
app_settings.rs Adjust examples and tests 2020-08-05 17:07:13 +03:00
arg_aliases.rs fix: detect if space should be added before spec_vals 2020-08-25 10:41:08 +03:00
arg_aliases_short.rs fix: detect if space should be added before spec_vals 2020-08-25 10:41:08 +03:00
borrowed.rs Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
cargo.rs style: rename ErrorKind::{VersionDisplayed, HelpDisplayed} to present tense 2020-07-20 10:27:07 +09:00
conflicts.rs Show arguments in conflict message in reverse order of input 2020-08-16 03:47:19 -05:00
default_missing_vals.rs tests ~ add tests for new 'default_missing_value' configuration option 2020-05-21 13:06:45 -05:00
default_vals.rs Arg::required_if => required_if_eq 2020-08-15 20:38:55 +03:00
delimiters.rs Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
derive_order.rs Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
env.rs Make sure that command line OVERRIDES env, not prepends (fix #1835) 2020-04-22 11:35:20 +03:00
examples.rs Exclude tests/examples.rs while checking coverage. 2020-08-24 10:23:49 -07:00
flag_subcommands.rs Fix and rearrange debug asserts 2020-08-12 06:12:42 +03:00
flags.rs Turn some integration tests into unit tests 2020-03-19 10:49:49 +03:00
global_args.rs Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
groups.rs Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
help.rs fix spaces in long help tests 2020-08-20 17:28:40 +03:00
hidden_args.rs fix spaces in long help tests 2020-08-20 17:28:40 +03:00
indices.rs Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
macros.rs Merge #2019 2020-07-19 10:28:03 +00:00
multiple_occurrences.rs Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
multiple_values.rs Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
opts.rs Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
positionals.rs Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
posix_compatible.rs Fix various typos in docs & code 2020-07-19 03:10:28 +03:00
possible_values.rs Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
propagate_globals.rs Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
require.rs Arg::required_unless_all => required_unless_eq_all 2020-08-15 20:38:57 +03:00
subcommands.rs style: rename ErrorKind::{VersionDisplayed, HelpDisplayed} to present tense 2020-07-20 10:27:07 +09:00
template_help.rs Put the test helper in tests 2020-02-04 09:51:46 +01:00
tests.rs Rename with_name to new for Arg & ArgGroup 2020-05-14 22:50:56 +02:00
unique_args.rs Fix warnings 2020-05-31 17:53:24 +03:00
utf8.rs Put the test helper in tests 2020-02-04 09:51:46 +01:00
utf16.rs add tests for invalid UTF-16 on Windows 2020-05-05 18:18:30 -04:00
utils.rs Fix various typos in docs & code 2020-07-19 03:10:28 +03:00
validators.rs Add test 2020-08-12 02:39:59 +03:00
version-numbers.rs Remove #[macro_use] from tests 2020-02-03 12:01:36 -05:00
version.rs style: rename ErrorKind::{VersionDisplayed, HelpDisplayed} to present tense 2020-07-20 10:27:07 +09:00
yaml.rs Add new "regex" feature 2020-08-26 17:54:54 +02:00