about summary refs log tree commit diff stats
path: root/src/main.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-20 15:18:23 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-20 15:18:23 +0200
commit29802269045c5eeb137a85d067120c5c6c7a6ed2 (patch)
tree2b85d357ab395292177f3f5e131b0f23803816ab /src/main.nim
parent38ada8121ea2a76720bb7188940d1d9d4b0a1c1d (diff)
downloadchawan-29802269045c5eeb137a85d067120c5c6c7a6ed2.tar.gz
Accept bare strings in -o, fix -o with missing newline
* Bare strings are now allowed when specifying config options
  through -o.
* Fix a bug where options specified with -o would be disregarded
  unless a newline was included.
* (Also, add a TOML stringifier routine for debugging.)
Diffstat (limited to 'src/main.nim')
-rw-r--r--src/main.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.nim b/src/main.nim
index 16a1a73e..ef8bdbbb 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -109,7 +109,7 @@ while i < params.len:
     conf.css.stylesheet &= getnext()
 
   proc popt() =
-    conf.parseConfig(getCurrentDir(), getnext())
+    conf.parseConfig(getCurrentDir(), getnext(), laxnames = true)
 
   proc phelp() =
     help(0)