Browse Source

Use flags for port/interface in serve cmd

index-subcmd
Vincent Prouillet 7 years ago
parent
commit
de5d711771
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +2
    -2
      src/cli.rs

+ 1
- 0
CHANGELOG.md 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)




+ 2
- 2
src/cli.rs 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 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)")
) )
) )
} }

Loading…
Cancel
Save