summaryrefslogtreecommitdiff
path: root/src/cmds/arg/storage_write.rs
blob: e00dfdffe7f5106353141ef50986292b6fb4b08a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use std::path::PathBuf;

use clap::Parser;

#[derive(Parser, Debug)]
pub struct JVStorageWriteArgument {
    pub file: PathBuf,
    pub storage: PathBuf,

    #[arg(short = 'o', long = "output")]
    pub output_index: Option<PathBuf>,

    #[arg(long = "line")]
    pub line_chunking: bool,

    #[arg(long = "cdc", default_value_t = 0)]
    pub cdc_chunking: u32,

    #[arg(long = "fixed", default_value_t = 0)]
    pub fixed_chunking: u32,

    #[arg(long)]
    pub b: bool,

    #[arg(long)]
    pub kb: bool, // default chunk size unit

    #[arg(long)]
    pub mb: bool,

    #[arg(long)]
    pub gb: bool,
}