Cmdline cmds array [ { "flag": "l", "doc": "Set log level." } ] orders object register_cmd(flag, fn, doc) register_order(order, fn, doc, usage = "") print_order(fn)