struct opt
This commit is contained in:
parent
8d50817587
commit
433e50f841
2 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
[package]
|
||||
name = "dip"
|
||||
description = "Configurable webhook server."
|
||||
version = "0.1.0"
|
||||
authors = ["Michael Zhang <failed.down@gmail.com>"]
|
||||
|
||||
|
|
|
@ -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<String>,
|
||||
}
|
||||
|
||||
fn main() -> Result<(), Error> {
|
||||
|
|
Loading…
Reference in a new issue