Fix usage text

The map command outputs PPM, not PBM. Also consistently use full stops.
This commit is contained in:
Ron Nazarov 2023-09-02 02:21:41 +01:00
parent bd5351e0ba
commit 215d95f863
Signed by: noisytoot
GPG key ID: 1D43EF4F4492268B

View file

@ -420,21 +420,21 @@ struct {
const char *usage;
} commands[] = {
{ "header", 0, NULL, cmd_header, false,
"Print header (including name/ID map)" },
"Print header (including name/ID map)." },
{ "dumpall", 0, NULL, cmd_dumpall, true,
"Dump param0-2 for all nodes" },
"Dump param0-2 for all nodes." },
{ "dump", 3, "<x> <y> <z>", cmd_dump, true,
"Dump param0-2 for a single node" },
"Dump param0-2 for a single node." },
{ "list", 1, "<name>", cmd_list, true,
"List all nodes of a certain type by name" },
"List all nodes of a certain type by name." },
{ "countall", 0, NULL, cmd_countall, true,
"Count all nodes by name" },
"Count all nodes by name." },
{ "count", 1, "<name>", cmd_count, true,
"Count all nodes of a certain type by name" },
"Count all nodes of a certain type by name." },
{ "map", 1, "<depth> [<format>]", cmd_map, true,
"Make a PBM map of all nodes in a single layer.\n"
"Make a PPM map of all nodes in a single layer.\n"
"Takes name->colour map from stdin.\n"
"<format> may be ppm-text or ppm-binary, defaults to ppm-text" },
"<format> may be ppm-text or ppm-binary, defaults to ppm-text." },
};
void usage(int status) {