1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#[derive(Debug, Clone, clap::Parser)]
#[command(author, version, about, long_about = None)]
pub(crate) struct Values {
  /// Set log level to trace
  #[arg(short, long)]
  pub(crate) trace: bool,

  /// Set log level to debug
  #[arg(short, long)]
  pub(crate) debug: bool,

  /// Alternative configuration location
  #[arg(short, long)]
  pub(crate) config: Option<String>,

  /// Skip running cloud processes
  #[arg(short, long)]
  pub(crate) local: bool,
}

pub(crate) fn parse() -> Values {
  clap::Parser::parse()
}