From cbb77a0569b6b79f51767180cb47cf50e68cf18c Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 15 Apr 2026 20:10:42 +0800 Subject: Update example command name from mycmd to fruit --- docs/pages/3-features/1-parser.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/pages/3-features') 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. ``` -- cgit