mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-09 05:39:09 -07:00
query: init
This commit is contained in:
18
crates/brk_query/src/params.rs
Normal file
18
crates/brk_query/src/params.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
use clap::Parser;
|
||||
use serde::Deserialize;
|
||||
|
||||
use crate::Format;
|
||||
|
||||
#[derive(Debug, Deserialize, Parser)]
|
||||
pub struct Params {
|
||||
#[clap(short, long)]
|
||||
pub index: String,
|
||||
#[clap(short, long, value_delimiter = ' ', num_args = 1..)]
|
||||
pub values: Vec<String>,
|
||||
#[clap(short, long, allow_hyphen_values = true)]
|
||||
pub from: Option<i64>,
|
||||
#[clap(short, long, allow_hyphen_values = true)]
|
||||
pub to: Option<i64>,
|
||||
#[clap(long)]
|
||||
pub format: Option<Format>,
|
||||
}
|
||||
Reference in New Issue
Block a user