File: input-options.toml

package info (click to toggle)
rust-exa 0.10.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,504 kB
  • sloc: sh: 57; perl: 29; makefile: 20
file content (77 lines) | stat: -rw-r--r-- 2,164 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[[cmd]]
name = "exa can handle invalid UTF-8 in command-line arguments"
shell = "exa /testcases/file-names/*"
stdout = { empty = false }
stderr = { empty = true }
status = 0
tags = [ 'options' ]

[[cmd]]
name = "exa displays an error for an unknown short option"
shell = "exa -4"
stdout = { empty = true }
stderr = { string = "Unknown argument -4" }
status = 3
tags = [ 'options' ]

[[cmd]]
name = "exa displays an error for an unknown long option"
shell = "exa --ternary"
stdout = { empty = true }
stderr = { string = "Unknown argument --ternary" }
status = 3
tags = [ 'options' ]

[[cmd]]
name = "exa displays an error for an option missing a parameter"
shell = "exa --time"
stdout = { empty = true }
stderr = { string = "Flag --time needs a value (choices: modified, changed, accessed, created)" }
status = 3
tags = [ 'options' ]

[[cmd]]
name = "exa displays an error for an option that cannot take a parameter has one"
shell = "exa --long=time"
stdout = { empty = true }
stderr = { string = "Flag --long cannot take a value" }
status = 3
tags = [ 'options' ]

[[cmd]]
name = "exa displays an error for option that takes the wrong parameter"
shell = "exa -l --time-style=24"
stdout = { empty = true }
stderr = { string = "Option --time-style has no \"24\" setting (choices: default, long-iso, full-iso, iso)" }
status = 3
tags = [ 'options' ]


# strict mode settings

[[cmd]]
name = "exa displays a warning for a useless option in strict mode"
shell = "exa --binary"
environment = { EXA_STRICT = "1" }
stdout = { empty = true }
stderr = { string = "Option --binary (-b) is useless without option --long (-l)" }
status = 3
tags = [ 'options' ]

[[cmd]]
name = "exa displays a warning for a short option given twice in strict mode"
shell = "exa -ll"
environment = { EXA_STRICT = "1" }
stdout = { empty = true }
stderr = { string = "Flag -l was given twice" }
status = 3
tags = [ 'options' ]

[[cmd]]
name = "exa displays a warning for a short option also given as long in strict mode"
shell = "exa -l --long"
environment = { EXA_STRICT = "1" }
stdout = { empty = true }
stderr = { string = "Flag -l conflicts with flag --long" }
status = 3
tags = [ 'options' ]