diff options
-rw-r--r-- | lib/std/fmt.myr | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/fmt.myr b/lib/std/fmt.myr index 11268e4..08b814d 100644 --- a/lib/std/fmt.myr +++ b/lib/std/fmt.myr @@ -481,11 +481,13 @@ const intparams = {params ] opts = parseparams(params, [ + ("b", true), ("x", false), ("w", true), ("p", true)][:]) for o : opts match o + | ("b", bas): ip.base = getint(bas, "fmt: base must be integer") | ("x", ""): ip.base = 16 | ("w", wid): ip.padto = getint(wid, "fmt: width must be integer") | ("p", pad): ip.padfill = decode(pad) |