WIP on client and clean up the binned range data structures
This commit is contained in:
@@ -12,6 +12,7 @@ pub struct Opts {
|
||||
#[derive(Debug, Clap)]
|
||||
pub enum SubCmd {
|
||||
Retrieval(Retrieval),
|
||||
Client(Client),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clap)]
|
||||
@@ -19,3 +20,30 @@ pub struct Retrieval {
|
||||
#[clap(long)]
|
||||
pub config: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clap)]
|
||||
pub struct Client {
|
||||
#[clap(subcommand)]
|
||||
pub client_type: ClientType,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clap)]
|
||||
pub enum ClientType {
|
||||
Binned(BinnedClient),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clap)]
|
||||
pub struct BinnedClient {
|
||||
#[clap(long)]
|
||||
pub host: String,
|
||||
#[clap(long)]
|
||||
pub port: u16,
|
||||
#[clap(long)]
|
||||
pub channel: String,
|
||||
#[clap(long)]
|
||||
pub beg: String,
|
||||
#[clap(long)]
|
||||
pub end: String,
|
||||
#[clap(long)]
|
||||
pub bins: u32,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user