aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-04-15 20:10:42 +0800
committer魏曹先生 <1992414357@qq.com>2026-04-15 20:10:42 +0800
commitcbb77a0569b6b79f51767180cb47cf50e68cf18c (patch)
tree804cb0eaaafe606300e093c2f46a4186396c45b2
parentc1438eaf47e023700a59dbacaba80c537d254959 (diff)
Update example command name from mycmd to fruit
-rw-r--r--docs/pages/3-features/1-parser.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/pages/3-features/1-parser.md b/docs/pages/3-features/1-parser.md
index 6915ba0..2ebe31c 100644
--- a/docs/pages/3-features/1-parser.md
+++ b/docs/pages/3-features/1-parser.md
@@ -363,18 +363,18 @@ cargo install --path ./
Running results:
```bash
-~> mycmd eat Apple --min-weight 20
+~> fruit eat Apple --min-weight 20
I ate 1 Apple, each weighing exactly 20.
-~> mycmd eat Apple --min-weight 20 --count 10
+~> fruit eat Apple --min-weight 20 --count 10
I ate 10 Apples, each weighing exactly 20.
-~> mycmd eat Apple --min-weight 10 --max-weight 20
+~> fruit eat Apple --min-weight 10 --max-weight 20
I ate 1 Apple, each weighing between 10 and 20.
-~> mycmd eat Apple --min-weight 20 --max-weight 10
+~> fruit eat Apple --min-weight 20 --max-weight 10
Error: min weight cannot be greater than max weight.
-~> mycmd eat --count 5
+~> fruit eat --count 5
I ate 5 Bananas, each weighing unknown.
```