global: snapshot

This commit is contained in:
nym21
2025-03-02 12:45:33 +01:00
parent 0453b6903a
commit ceefc8ffc6
14 changed files with 113 additions and 94 deletions

View File

@@ -1,11 +1,11 @@
use clap::Parser;
use clap::{Parser, builder::PossibleValuesParser};
use serde::Deserialize;
use crate::Format;
use crate::{Format, Index};
#[derive(Debug, Deserialize, Parser)]
pub struct Params {
#[clap(short, long)]
#[clap(short, long, value_parser = PossibleValuesParser::new(Index::ids()))]
pub index: String,
#[clap(short, long, value_delimiter = ' ', num_args = 1..)]
pub values: Vec<String>,