cargo-fmt
This commit is contained in:
parent
34a081c6d6
commit
7cf669e619
@ -4,13 +4,28 @@ use structopt::StructOpt;
|
|||||||
#[derive(StructOpt, Debug)]
|
#[derive(StructOpt, Debug)]
|
||||||
#[structopt(name = "event-gen")]
|
#[structopt(name = "event-gen")]
|
||||||
pub struct Opts {
|
pub struct Opts {
|
||||||
#[structopt(short = "t", long = "timeout", default_value = "120", env = "WG_EVENT_TIMEOUT")]
|
#[structopt(
|
||||||
|
short = "t",
|
||||||
|
long = "timeout",
|
||||||
|
default_value = "120",
|
||||||
|
env = "WG_EVENT_TIMEOUT"
|
||||||
|
)]
|
||||||
pub timeout: u64,
|
pub timeout: u64,
|
||||||
|
|
||||||
#[structopt(short = "p", long = "poll-interval", default_value = "3000", env = "WG_EVENT_INTERVAL")]
|
#[structopt(
|
||||||
|
short = "p",
|
||||||
|
long = "poll-interval",
|
||||||
|
default_value = "3000",
|
||||||
|
env = "WG_EVENT_INTERVAL"
|
||||||
|
)]
|
||||||
pub poll: u64,
|
pub poll: u64,
|
||||||
|
|
||||||
#[structopt(short = "e", long = "event-handler", parse(from_os_str), env = "WG_EVENT_HANDLER")]
|
#[structopt(
|
||||||
|
short = "e",
|
||||||
|
long = "event-handler",
|
||||||
|
parse(from_os_str),
|
||||||
|
env = "WG_EVENT_HANDLER"
|
||||||
|
)]
|
||||||
pub events: Option<PathBuf>,
|
pub events: Option<PathBuf>,
|
||||||
|
|
||||||
#[structopt(name = "SOCKET", parse(from_os_str), env = "WG_EVENT_SOCKET")]
|
#[structopt(name = "SOCKET", parse(from_os_str), env = "WG_EVENT_SOCKET")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user