aboutsummaryrefslogtreecommitdiff
path: root/arg_picker/src/constants.rs
blob: 39250f846b9ffba930c6a435b6604ab5cd36ab29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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,
};