Added webserver and port number specification
This commit is contained in:
@@ -12,6 +12,10 @@ fn current_dir_as_string() -> String {
|
||||
#[derive(Parser, Debug)]
|
||||
#[command(version, about, long_about = None)]
|
||||
pub struct Args {
|
||||
/// Port for the web server to listen on.
|
||||
#[arg(short, long, default_value_t = 8000)]
|
||||
pub port: u16,
|
||||
|
||||
/// Interface to print URLs for. Default is all interfaces.
|
||||
#[arg(short, long, default_value_t = String::from("all"))]
|
||||
pub interface: String,
|
||||
|
||||
Reference in New Issue
Block a user