clap/tests/app.yml
Gregor Pfeifer 6180d42c00 feat: Add Arg::conflicts_with_everything method #1583 (#1624)
* feat: Add `Arg::conflicts_with_everything` method #1583

* fix: Typo in  src/build/arg/mod.rs

Co-Authored-By: Dylan DPC <dylan.dpc@gmail.com>

Co-authored-by: Dylan DPC <dylan.dpc@gmail.com>
2020-01-06 00:16:28 +05:30

125 lines
3 KiB
YAML

name: claptests
version: "1.0"
about: tests clap library
author: Kevin K. <kbknapp@gmail.com>
settings:
- ArgRequiredElseHelp
args:
- help:
short: h
long: help
help: prints help with a nonstandard description
- opt:
short: o
long: option
multiple: true
help: tests options
- positional:
help: tests positionals
index: 1
- positional2:
help: tests positionals with exclusions
index: 2
default_value_if:
- [flag, Null, some]
- [postional, other, something]
- flag:
short: f
long: flag
multiple: true
help: tests flags
global: true
- flag2:
short: F
help: tests flags with exclusions
conflicts_with:
- flag
requires:
- option2
- option2:
long: long-option-2
help: tests long options with exclusions
conflicts_with:
- option
requires:
- positional2
- option3:
short: O
long: Option
help: tests options with specific value sets
takes_value: true
possible_values:
- fast
- slow
requires_if:
- [fast, flag]
- positional3:
index: 3
help: tests positionals with specific values
possible_values: [ vi, emacs ]
- multvals:
long: multvals
help: Tests mutliple values, not mult occs
value_names:
- one
- two
- multvalsmo:
long: multvalsmo
multiple: true
help: Tests mutliple values, not mult occs
value_names: [one, two]
- multvalsdelim:
long: multvalsdelim
help: Tests mutliple values with required delimiter
multiple: true
require_delimiter: true
- singlealias:
long: singlealias
help: Tests single alias
aliases: [alias]
required_if:
- [multvalsmo, two]
- multaliases:
long: multaliases
help: Tests mutliple aliases
aliases: [als1, als2, als3]
- minvals2:
long: minvals2
multiple: true
help: Tests 2 min vals
min_values: 2
- maxvals3:
long: maxvals3
multiple: true
help: Tests 3 max vals
max_values: 3
- exclusive:
long: exclusive
help: Tests 3 exclusive
exclusive: true
arg_groups:
- test:
args:
- maxvals3
- minmals2
conflicts_with:
- option3
requires:
- multvals
subcommands:
- subcmd:
about: tests subcommands
version: "0.1"
author: Kevin K. <kbknapp@gmail.com>
args:
- scoption:
short: o
long: option
multiple: true
help: tests options
takes_value: true
- scpositional:
help: tests positionals
index: 1