diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.nim b/src/main.nim index fdec3081..7c5a9243 100644 --- a/src/main.nim +++ b/src/main.nim @@ -100,6 +100,13 @@ while i < params.len: pages.add(param) inc i +if pages.len == 0: + let http = getEnv("HTTP_HOME") + if http != "": pages.add(http) + else: + let www = getEnv("WWW_HOME") + if www != "": pages.add(www) + if pages.len == 0 and not conf.headless: if stdin.isatty: help(1) |