<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_CommandLine::add_option - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>CL_CommandLine::add_option</h1> <p> Adds a option to the parser</p> <pre> void add_option( int key, const std::string& long_option, const std::string& argument, const std::string& help, bool visible = true); </pre> <p><b>Parameters:</b></p> <dl> <dt><i>key</i></dt><dd>a letter for a short-option or a numeric valuelarger than 255 that identifies the option</dd> <dt><i>long_option</i></dt><dd>the long name of this option or "" if nonshould be used for this option</dd> <dt><i>argument</i></dt><dd>the type of the argument that this optionrequires (i.e. FILE, SIZE, WIDTH, etc.) or "" if no argument isrequired</dd> <dt><i>help</i></dt><dd>the help string for this option</dd> <dt><i>visible</i></dt><dd>true if the option should be listed in the helpoutput, false will not list it in the help output which mightbe usefull for cheat-options or backward-compability optionsthan would only clutter the help output</dd> </dl> <p><b>See also:</b></p> <p><a href="CL_CommandLine.html">CL_CommandLine</a></p> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->