diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-19 11:03:31 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-19 11:03:31 +0800 |
| commit | c59ba598696ea619d72673268cbbfe6c74a2e9fa (patch) | |
| tree | b12eb8060c20cbe16a80f32b9731c821b21f6ac3 /docs/pages/other/features.md | |
| parent | 677600e91f321a23d869ee94e66f8b716ec0ce8f (diff) | |
docs(features): document the new `picker` feature
Diffstat (limited to 'docs/pages/other/features.md')
| -rw-r--r-- | docs/pages/other/features.md | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/docs/pages/other/features.md b/docs/pages/other/features.md index 0da4630..7994d4c 100644 --- a/docs/pages/other/features.md +++ b/docs/pages/other/features.md @@ -274,12 +274,24 @@ See [example](https://mingling-rs.github.io/mingling/docs/example-viewer.html?na **Description:** -Enables the parser module, providing text parsing and analysis capabilities. +Enables the argument parser module, providing argument parsing functionality. -When enabled, you can use `Picker` for zero-cost argument extraction, supporting methods like `pick()` and `pick_or()`. +When enabled, you can use `Picker` for simple argument extraction, supporting methods like `pick()` and `pick_or()`. See [example](https://mingling-rs.github.io/mingling/docs/example-viewer.html?name=example-argument-parse) +## Feature `picker` + +**Description:** + +Introduces the `arg-picker` dependency, providing more advanced argument parsing capabilities for Mingling. + +It can coexist with the `parser` and `clap` features, but it is recommended not to enable it alongside the `parser` feature, as their APIs are very similar. + +`picker` is an argument parser independent of Mingling and does not rely on the built-in argument extraction API of `mingling_core`. + +See [example](https://mingling-rs.github.io/mingling/docs/example-viewer.html?name=example-argument-picker) + ## Feature `repl` **Description:** |
