blob: 64e011d128b8056c305b564beb9680d1ae168de5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
use std::path::PathBuf;
use structopt::StructOpt;
use anyhow::Error;
#[derive(Debug, StructOpt)]
#[structopt(name = "distrox", about = "Distrox - The distributed social network")]
pub struct CLI {
#[structopt(short, long)]
debug: bool,
#[structopt(short, long)]
trace: bool,
#[structopt(parse(from_os_str))]
configfile: Option<PathBuf>,
}
pub fn cli() -> Result<CLI, Error> {
Ok(CLI::from_args())
}
|