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
use std::path::PathBuf;
use structopt::StructOpt;
#[derive(Debug, StructOpt)]
#[structopt(about = env!("CARGO_PKG_DESCRIPTION"))]
pub struct Args {
#[structopt(subcommand)]
pub subcommand: Subcommand,
}
#[derive(Debug, StructOpt)]
pub enum Subcommand {
Extract(ExtractSubcommand),
}
#[derive(Debug, StructOpt)]
pub struct ExtractSubcommand {
pub input_path: Option<PathBuf>,
#[structopt(long = "base", short = "b")]
pub base_path: Option<PathBuf>,
}