From 83975d25eb89235bcd9e2d3f137057e728ca71b7 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 5 Jan 2017 17:09:04 -0800 Subject: [PATCH] ui, web: sync some things in help & manual --- hledger-ui/Hledger/UI/UIOptions.hs | 2 +- hledger-ui/doc/hledger-ui.1.m4.md | 2 +- hledger-web/doc/hledger-web.1.m4.md | 11 +++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/hledger-ui/Hledger/UI/UIOptions.hs b/hledger-ui/Hledger/UI/UIOptions.hs index 64f78a101..8998a6023 100644 --- a/hledger-ui/Hledger/UI/UIOptions.hs +++ b/hledger-ui/Hledger/UI/UIOptions.hs @@ -26,7 +26,7 @@ prognameandversion = progname ++ " " ++ version :: String uiflags = [ -- flagNone ["debug-ui"] (\opts -> setboolopt "rules-file" opts) "run with no terminal output, showing console" - flagNone ["watch"] (\opts -> setboolopt "watch" opts) "watch for data changes and reload automatically" + flagNone ["watch"] (\opts -> setboolopt "watch" opts) "watch for data and date changes and reload automatically" ,flagReq ["theme"] (\s opts -> Right $ setopt "theme" s opts) "THEME" ("use this custom display theme ("++intercalate ", " themeNames++")") ,flagReq ["register"] (\s opts -> Right $ setopt "register" s opts) "ACCTREGEX" "start in the (first) matched account's register" ,flagNone ["change"] (\opts -> setboolopt "change" opts) diff --git a/hledger-ui/doc/hledger-ui.1.m4.md b/hledger-ui/doc/hledger-ui.1.m4.md index 65b3cde99..5dc0b8262 100644 --- a/hledger-ui/doc/hledger-ui.1.m4.md +++ b/hledger-ui/doc/hledger-ui.1.m4.md @@ -50,7 +50,7 @@ Note: if invoking hledger-ui as a hledger subcommand, write `--` before options Any QUERYARGS are interpreted as a hledger search query which filters the data. `--watch` -: watch for data (and time) changes and reload automatically +: watch for data and date changes and reload automatically `--theme=default|terminal|greenterm` : use this custom display theme diff --git a/hledger-web/doc/hledger-web.1.m4.md b/hledger-web/doc/hledger-web.1.m4.md index bc428681a..ade6c08ae 100644 --- a/hledger-web/doc/hledger-web.1.m4.md +++ b/hledger-web/doc/hledger-web.1.m4.md @@ -111,14 +111,17 @@ hledger-web will show an error until the file has been fixed. Note: if invoking hledger-web as a hledger subcommand, write `--` before options as shown above. -`--server` -: disable browser-opening and auto-exit-on-idle, and log all requests to stdout +`--serve` +: serve and log requests, don't browse or auto-exit + +`--host=IPADDR` +: listen on this IP address (default: 127.0.0.1) `--port=PORT` -: set the TCP port to listen on (default: 5000) +: listen on this TCP port (default: 5000) `--base-url=URL` -: set the base url (default: http://localhost:PORT). +: set the base url (default: http://IPADDR:PORT). You would change this when sharing over the network, or integrating within a larger website. `--file-url=URL`