aboutsummaryrefslogtreecommitdiff
path: root/examples/test-examples.toml
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-22 20:47:00 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-22 20:47:00 +0800
commit31b5abfc96013309530025b751293c7de916dcf3 (patch)
treeea151429c4d754e1d2b709e976ba369c534c226b /examples/test-examples.toml
parent5169b9a462a7a3854b8320c8d9e78985a34c5f15 (diff)
Add help command with exit code 2 for exitcode example
Diffstat (limited to 'examples/test-examples.toml')
-rw-r--r--examples/test-examples.toml5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/test-examples.toml b/examples/test-examples.toml
index 490361b..038221d 100644
--- a/examples/test-examples.toml
+++ b/examples/test-examples.toml
@@ -38,6 +38,11 @@ command = "hello"
expect.exit-code = 1
expect.result = "No name provided (with exit code 1)"
+[[test.example-exitcode]]
+command = "hello --help"
+expect.exit-code = 2
+expect.result = "Usage: hello <NAME>"
+
[[test.example-error-handling]]
command = "hello"
expect.exit-code = 0