mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-09 05:39:09 -07:00
global: snapshot
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user