ref: 94448201527e0c47c2924219bf1a8d0c0c2406b7
parent: 7e54db408cbfd206f16775070aef8fb0115587f7
author: Ori Bernstein <[email protected]>
date: Tue Jan 9 20:00:31 EST 2018
Die on bad options, and use a \n in the format string.
--- a/lib/date/fmt.myr
+++ b/lib/date/fmt.myr
@@ -26,7 +26,7 @@
| ("t", ""): fmt = Timefmt
| ("D", ""): fmt = Datetimefmt
| ("f", opt): fmt = opt
- | _: std.fatal("unknown option")
+ | _: std.die("unknown option\n")
;;
;;
datefmt(sb, fmt, d)