yepzon-locationer/src/cmd.rs

26 lines
541 B
Rust
Raw Normal View History

2020-08-23 01:18:31 +02:00
use argh::FromArgs;
#[derive(FromArgs)]
#[argh(description = "Tool for gathering location data from Yepzon servers.")]
pub struct EnvOpt {
#[argh(subcommand)]
pub subcommand: Subcommand,
}
#[derive(FromArgs)]
#[argh(subcommand)]
pub enum Subcommand {
Run(RunOpt),
Init(InitOpt),
}
#[derive(FromArgs)]
#[argh(subcommand, name = "run")]
#[argh(description = "Run the tool")]
pub struct RunOpt {}
#[derive(FromArgs)]
#[argh(subcommand, name = "init")]
#[argh(description = "Initialize a config file")]
pub struct InitOpt {}