Use flags for port/interface in serve cmd

This commit is contained in:
Vincent Prouillet 2017-09-27 21:46:32 +09:00
parent 5d7e0bb33e
commit de5d711771
2 changed files with 3 additions and 2 deletions

View file

@ -8,6 +8,7 @@
- Add back `draft` on pages that was wrongly removed - Add back `draft` on pages that was wrongly removed
- Page and Section `path` field is not starting with a `/` anymore - Page and Section `path` field is not starting with a `/` anymore
- All Tera global fns are now rebuilt on changes - All Tera global fns are now rebuilt on changes
- Use flags for port/interface in `gutenberg serve`
## 0.1.3 (2017-08-31) ## 0.1.3 (2017-08-31)

View file

@ -17,8 +17,8 @@ pub fn build_cli() -> App<'static, 'static> {
) )
(@subcommand serve => (@subcommand serve =>
(about: "Serve the site. Rebuild and reload on change automatically") (about: "Serve the site. Rebuild and reload on change automatically")
(@arg interface: "Interface to bind on (default to 127.0.0.1)") (@arg interface: -i --interface +takes_value "Interface to bind on (default to 127.0.0.1)")
(@arg port: "Which port to use (default to 1111)") (@arg port: -p --port +takes_value "Which port to use (default to 1111)")
) )
) )
} }