The cmd_parse() example included in the docs is pretty contrived and not a normal use of cmd_parse at all. It shows off all possible features, but rarely will everything be used. Thus the example looks so complex people are afraid of the method. Something that shows the basics would be very helpful, maybe:
map args = cmd_parse({
{ "o", 0, "Output directory", { HAS_PARAMETER } },
{ "v", 0, "Verbose mode" }
})
changeset: 5584:5ce82de46b87 tag: tip user: Jeremy Cowgar <jeremy@cowgar.com> date: Thu Jun 07 00:18:36 2012 -0400 files: include/std/cmdline.e description: Added a simple cmd_parse example, fixes ticket 585