From 68979f2d884f942b5b140e1d57b76a98be6bca18 Mon Sep 17 00:00:00 2001 From: chris west Date: Sat, 27 Jun 2020 09:59:19 -0700 Subject: [PATCH] add --bind to -h --- src/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7f165ce..8aa1695 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ use phd; -use std::process; use std::net::SocketAddr; +use std::process; const DEFAULT_BIND: &str = "[::]:7070"; const DEFAULT_HOST: &str = "127.0.0.1"; @@ -91,8 +91,9 @@ fn print_help() { Options: -r, --render SELECTOR Render and print SELECTOR to stdout only. - -p, --port Port to bind to. [Default: {port}] - -h, --host Hostname for links. [Default: {host}] + -p, --port PORT Port to bind to. [Default: {port}] + -h, --host HOST Hostname for links. [Default: {host}] + -b, --bind ADDRESS Socket address to bind to. [Default: {bind}] Other flags: @@ -109,6 +110,7 @@ Examples: ", host = DEFAULT_HOST, port = DEFAULT_PORT, + bind = DEFAULT_BIND, ); }