Euphoria Ticket #585: Provide a simple cmd_parse() example

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" }  
})  

Details

Type: Feature Request Severity: Textual Category: Library Routine
Assigned To: jeremy Status: Fixed Reported Release: 4.0.0
Fixed in SVN #: View VCS: none Milestone: 4.0.2

1. Comment by jeremy Jun 07, 2012

See: hg:euphoria/rev/5ce82de46b87

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

Search



Quick Links

User menu

Not signed in.

Misc Menu