about summary refs log tree commit diff stats
path: root/adapter/format
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-29 17:03:25 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-29 17:03:25 +0100
commit8cdf0a47072cc0f223a73da96833dc31028835fa (patch)
treea74f200ba04f05d5022ba41b38a3535108213b90 /adapter/format
parent75a5bdedbe3299b4a8d58239fd6d4ddaf52c8e5b (diff)
downloadchawan-8cdf0a47072cc0f223a73da96833dc31028835fa.tar.gz
ansi2html: error out on unrecognized switches
Diffstat (limited to 'adapter/format')
-rw-r--r--adapter/format/ansi2html.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/adapter/format/ansi2html.nim b/adapter/format/ansi2html.nim
index 9abc6925..49f24d87 100644
--- a/adapter/format/ansi2html.nim
+++ b/adapter/format/ansi2html.nim
@@ -381,7 +381,8 @@ proc main() =
         inc i
         if i > H: usage()
         title = paramStr(i).percentDecode()
-      else: discard
+      else:
+        usage()
     inc i
   if standalone:
     state.puts("<!DOCTYPE html>\n")