diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-20 02:47:45 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-20 02:47:45 +0800 |
| commit | e1d1941e223838c234c156561d9d4307e87289d7 (patch) | |
| tree | 61a01addb3b0ef43c4a6de53b10eb35e0e80fe3d /arg_picker/src/constants.rs | |
| parent | 92d721ac86c707951d984510ceeafa54255c2880 (diff) | |
feat(arg-picker): add REMAINS constant and re-export via consts module
Move the REMAINS constant definition into arg_picker and re-export it
through mingling's constants module for unified access
Diffstat (limited to 'arg_picker/src/constants.rs')
| -rw-r--r-- | arg_picker/src/constants.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arg_picker/src/constants.rs b/arg_picker/src/constants.rs new file mode 100644 index 0000000..39250f8 --- /dev/null +++ b/arg_picker/src/constants.rs @@ -0,0 +1,16 @@ +use std::marker::PhantomData; + +use crate::{PickerArg, PickerArgs}; + +/// Remaining positional arguments (anything not consumed as an option). +/// - `full`: `[]` (empty — not triggered by any `--` prefix). +/// - `short`: (none) +/// - `positional`: `false` (this is a meta‑argument that collects everything left). +/// This constant is used internally to access any leftover arguments after +/// all defined flags/options have been processed. +pub const REMAINS: PickerArg<PickerArgs> = PickerArg::<PickerArgs> { + full: &[], + short: None, + positional: false, + internal_type: PhantomData, +}; |
