aboutsummaryrefslogtreecommitdiff
path: root/mingling_picker/src/infos.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-15 19:31:23 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-15 19:33:45 +0800
commit8b2bbdef88f47838ed0326f5c9cf86bac84babde (patch)
treecab7e7d492e4778a8084919459e0e8f40cc0827f /mingling_picker/src/infos.rs
parent5894aa72a8e63f8b6d095678fe58e88fd64836a1 (diff)
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.
Diffstat (limited to 'mingling_picker/src/infos.rs')
-rw-r--r--mingling_picker/src/infos.rs5
1 files changed, 5 insertions, 0 deletions
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<Type> PickerArgResult<Type> {
}
}
+/// 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<char>,