<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Case sensitive values</title><link>https://sourceforge.net/p/argument/wiki/Case%2520sensitive%2520values/</link><description>Recent changes to Case sensitive values</description><atom:link href="https://sourceforge.net/p/argument/wiki/Case%20sensitive%20values/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 05 Dec 2013 02:40:25 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/argument/wiki/Case%20sensitive%20values/feed" rel="self" type="application/rss+xml"/><item><title>Case sensitive values modified by Chris DeGreef</title><link>https://sourceforge.net/p/argument/wiki/Case%2520sensitive%2520values/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The --casesensitive parameter refers to the value the user enters when running your program.  In this example it is IBM.  The value the user enters is retained exactly as they enter it.  &lt;code&gt;--casesensitive&lt;/code&gt; only applies to the comparisons done against constraints.&lt;/p&gt;
&lt;p&gt;If a &lt;code&gt;--list&lt;/code&gt; has all lower-case values in it then everything the user types must be in lower-case or they will get an exception at runtime.&lt;/p&gt;
&lt;p&gt;Because we use the --casesensitive parameter exceptions will be thrown.  The values the user enters are not in the list.  Case matters.&lt;br /&gt;
&lt;pre class="java:html:nocontrols" name="code"&gt;CmdLine.create("--type string --key ticker --casesensitive --list IBM goog");&lt;/pre&gt;&lt;br /&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;&amp;gt; MyProgram --ticker Ibm&lt;/pre&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;MyProgram --ticker Goog&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This example works because case does not matter.&lt;br /&gt;
&lt;pre class="java:html:nocontrols" name="code"&gt;CmdLine.create("--type string --key ticker --list IBM goog");&lt;/pre&gt;&lt;br /&gt;
&lt;pre class="html:nocontrols:nogutter" name="code"&gt;&amp;gt; MyProgram --ticker Ibm&lt;/pre&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;MyProgram --ticker Goog&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris DeGreef</dc:creator><pubDate>Thu, 05 Dec 2013 02:40:25 -0000</pubDate><guid>https://sourceforge.net5ead844ef0d8c1b6da676ddb395f1941d000d2bb</guid></item></channel></rss>