From 8b2bbdef88f47838ed0326f5c9cf86bac84babde Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 15 Jul 2026 19:31:23 +0800 Subject: feat(picker): add builtin bool pickable and parselib matcher framework Add `Pickable` implementation for `bool` and the supporting `Matcher` trait with utility functions for argument matching. Expose `pickable_needed` and `matcher_needed` modules for downstream trait implementors. --- mingling_picker/src/infos.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mingling_picker/src/infos.rs') diff --git a/mingling_picker/src/infos.rs b/mingling_picker/src/infos.rs index ff78b0a..c0309e0 100644 --- a/mingling_picker/src/infos.rs +++ b/mingling_picker/src/infos.rs @@ -261,6 +261,11 @@ impl PickerArgResult { } } +/// Represents metadata about a command-line argument or flag. +/// +/// This struct stores all relevant information about a tag/argument that can be used +/// for parsing command-line inputs. It includes the short form (e.g., `-n`), long form +/// (e.g., `--name`), aliases, and various flags that control parsing behavior. pub struct PickerArgInfo<'a> { /// The short form of the tag, e.g. `'n'` for `-n`. pub short: Option, -- cgit