ref: cc358d4bc9bd38c4d605c73f934cff643fe8519c
parent: 3071c38b16cda2e1b5947ea28f64e4fd182250db
author: Michael Forney <mforney@mforney.org>
date: Wed Feb 16 04:55:37 EST 2022
cons: allow toggling debug flag setdbg already supports no parameters as a way to toggle the debug flag, but minarg was set to 1, so it always required a parameter.
--- a/cons.c
+++ b/cons.c
@@ -265,7 +265,7 @@
{.name="show", .sub="tree", .minarg=0, .maxarg=1, .fn=showtree},
{.name="show", .sub="users", .minarg=0, .maxarg=0, .fn=showusers},
{.name="show", .sub="blk", .minarg=1, .maxarg=1, .fn=showblkdump},
- {.name="debug", .sub=nil, .minarg=1, .maxarg=1, .fn=setdbg},
+ {.name="debug", .sub=nil, .minarg=0, .maxarg=1, .fn=setdbg},
{.name=nil, .sub=nil},
};