From de5d7117719bf96d470c02af024ecd490eeb26bd Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Wed, 27 Sep 2017 21:46:32 +0900 Subject: [PATCH] Use flags for port/interface in serve cmd --- CHANGELOG.md | 1 + src/cli.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c25cdb0..ef6edfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Add back `draft` on pages that was wrongly removed - Page and Section `path` field is not starting with a `/` anymore - All Tera global fns are now rebuilt on changes +- Use flags for port/interface in `gutenberg serve` ## 0.1.3 (2017-08-31) diff --git a/src/cli.rs b/src/cli.rs index c6f9091..75dd83d 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -17,8 +17,8 @@ pub fn build_cli() -> App<'static, 'static> { ) (@subcommand serve => (about: "Serve the site. Rebuild and reload on change automatically") - (@arg interface: "Interface to bind on (default to 127.0.0.1)") - (@arg port: "Which port to use (default to 1111)") + (@arg interface: -i --interface +takes_value "Interface to bind on (default to 127.0.0.1)") + (@arg port: -p --port +takes_value "Which port to use (default to 1111)") ) ) }