diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-29 17:03:25 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-29 17:03:25 +0100 |
commit | 8cdf0a47072cc0f223a73da96833dc31028835fa (patch) | |
tree | a74f200ba04f05d5022ba41b38a3535108213b90 | |
parent | 75a5bdedbe3299b4a8d58239fd6d4ddaf52c8e5b (diff) | |
download | chawan-8cdf0a47072cc0f223a73da96833dc31028835fa.tar.gz |
ansi2html: error out on unrecognized switches
-rw-r--r-- | adapter/format/ansi2html.nim | 3 |
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") |