Skip to content

Commit 1a3c729

Browse files
committed
test(App from YAML): fixes yaml app declaration
1 parent 19b348a commit 1a3c729

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/app.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: claptests
22
version: 1.0
33
about: tests clap library
44
author: Kevin K. <[email protected]>
5+
settings: ArgRequiredElseHelp
56
args:
67
- opt:
78
short: o
@@ -10,10 +11,10 @@ args:
1011
help: tests options
1112
- positional:
1213
help: tests positionals
13-
takes_value: true
14+
index: 1
1415
- positional2:
1516
help: tests positionals with exclusions
16-
takes_value: true
17+
index: 2
1718
- flag:
1819
short: f
1920
long: flag
@@ -43,7 +44,7 @@ args:
4344
- fast
4445
- slow
4546
- positional3:
46-
takes_value: true
47+
index: 3
4748
help: tests positionals with specific values
4849
possible_values: [ vi, emacs ]
4950
- multvals:
@@ -81,4 +82,4 @@ subcommands:
8182
takes_value: true
8283
- scpositional:
8384
help: tests positionals
84-
takes_value: true
85+
index: 1

0 commit comments

Comments
 (0)