From 433e50f84165131f7f23d8ecebf2ee615fd6dc94 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 15 Aug 2018 22:24:36 +0000 Subject: [PATCH] struct opt --- Cargo.toml | 1 + src/main.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 9a23e25..2938378 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,6 @@ [package] name = "dip" +description = "Configurable webhook server." version = "0.1.0" authors = ["Michael Zhang "] diff --git a/src/main.rs b/src/main.rs index 7349407..8e4f95a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,8 +10,12 @@ use structopt::StructOpt; #[derive(Debug, StructOpt)] struct Opt { + /// The root configuration directory for dip. #[structopt(short = "d", long = "root", parse(from_os_str))] root: PathBuf, + /// A string containing the address to bind to. + #[structopt(short = "b", long = "bind")] + bind: Option, } fn main() -> Result<(), Error> {