From fb63c8de43c538bcaf9afd57122fbf1c542966d0 Mon Sep 17 00:00:00 2001 From: boasting-squirrel Date: Thu, 14 Feb 2019 22:24:07 +0100 Subject: Switched to structopt --- src/main.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 7c31976..7bdb986 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,7 @@ +extern crate structopt; +#[macro_use] +extern crate clap; + use actix_web::{fs, middleware, server, App}; use clap::crate_version; use simplelog::{Config, LevelFilter, TermLogger}; @@ -16,11 +20,11 @@ mod listing; pub struct MiniserveConfig { /// Enable verbose mode pub verbose: bool, - + /// Path to be served by miniserve pub path: std::path::PathBuf, - /// Port on which miniserve will be listening + /// Port on which miniserve will be listening pub port: u16, /// IP address(es) on which miniserve will be available -- cgit v1.2.3