input-options.toml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. [[cmd]]
  2. name = "exa can handle invalid UTF-8 in command-line arguments"
  3. shell = "exa /testcases/file-names/*"
  4. stdout = { empty = false }
  5. stderr = { empty = true }
  6. status = 0
  7. tags = [ 'options' ]
  8. [[cmd]]
  9. name = "exa displays an error for an unknown short option"
  10. shell = "exa -4"
  11. stdout = { empty = true }
  12. stderr = { string = "Unknown argument -4" }
  13. status = 3
  14. tags = [ 'options' ]
  15. [[cmd]]
  16. name = "exa displays an error for an unknown long option"
  17. shell = "exa --ternary"
  18. stdout = { empty = true }
  19. stderr = { string = "Unknown argument --ternary" }
  20. status = 3
  21. tags = [ 'options' ]
  22. [[cmd]]
  23. name = "exa displays an error for an option missing a parameter"
  24. shell = "exa --time"
  25. stdout = { empty = true }
  26. stderr = { string = "Flag --time needs a value (choices: modified, changed, accessed, created)" }
  27. status = 3
  28. tags = [ 'options' ]
  29. [[cmd]]
  30. name = "exa displays an error for an option that cannot take a parameter has one"
  31. shell = "exa --long=time"
  32. stdout = { empty = true }
  33. stderr = { string = "Flag --long cannot take a value" }
  34. status = 3
  35. tags = [ 'options' ]
  36. [[cmd]]
  37. name = "exa displays an error for option that takes the wrong parameter"
  38. shell = "exa -l --time-style=24"
  39. stdout = { empty = true }
  40. stderr = { string = "Option --time-style has no \"24\" setting (choices: default, long-iso, full-iso, iso, relative)" }
  41. status = 3
  42. tags = [ 'options' ]
  43. # strict mode settings
  44. [[cmd]]
  45. name = "exa displays a warning for a useless option in strict mode"
  46. shell = "exa --binary"
  47. environment = { EXA_STRICT = "1" }
  48. stdout = { empty = true }
  49. stderr = { string = "Option --binary (-b) is useless without option --long (-l)" }
  50. status = 3
  51. tags = [ 'options' ]
  52. [[cmd]]
  53. name = "exa displays a warning for a short option given twice in strict mode"
  54. shell = "exa -ll"
  55. environment = { EXA_STRICT = "1" }
  56. stdout = { empty = true }
  57. stderr = { string = "Flag -l was given twice" }
  58. status = 3
  59. tags = [ 'options' ]
  60. [[cmd]]
  61. name = "exa displays a warning for a short option also given as long in strict mode"
  62. shell = "exa -l --long"
  63. environment = { EXA_STRICT = "1" }
  64. stdout = { empty = true }
  65. stderr = { string = "Flag -l conflicts with flag --long" }
  66. status = 3
  67. tags = [ 'options' ]