From 9308cd6a7a9b1a8dbcf41ff71114b567261c3136 Mon Sep 17 00:00:00 2001 From: VonC Date: Wed, 14 Aug 2013 10:53:41 +0200 Subject: [PATCH] Clarify uglyurls flag. Mention more clearly that, for generating `/filename.html`, you need to set the `uglyurls` flag to `true`. --- docs/content/doc/usage.md | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/doc/usage.md b/docs/content/doc/usage.md index b0d862e0c..3d0dbe9ee 100644 --- a/docs/content/doc/usage.md +++ b/docs/content/doc/usage.md @@ -15,7 +15,7 @@ Make sure either hugo is in your path or provide a path to it. --port="1313": port to run web server on, default :1313 -S, --server=false: run a (very) simple web server -s, --source="": filesystem path to read files relative from - --uglyurls=false: use /filename.html instead of /filename/ + --uglyurls=false: if true, use /filename.html instead of /filename/ -v, --verbose=false: verbose output --version=false: which version of hugo -w, --watch=false: watch filesystem for changes and recreate as needed diff --git a/main.go b/main.go index d89b9f10c..30f8cb412 100644 --- a/main.go +++ b/main.go @@ -42,7 +42,7 @@ var ( watchMode = flag.BoolP("watch", "w", false, "watch filesystem for changes and recreate as needed") server = flag.BoolP("server", "S", false, "run a (very) simple web server") port = flag.String("port", "1313", "port to run web server on, default :1313") - uglyUrls = flag.Bool("uglyurls", false, "use /filename.html instead of /filename/ ") + uglyUrls = flag.Bool("uglyurls", false, "if true, use /filename.html instead of /filename/") ) func usage() {