<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/cla/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/cla/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 10 May 2016 17:13:24 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/cla/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Home modified by Miguel Alejan. Moreno Barrientos</title><link>https://sourceforge.net/p/cla/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -89,12 +89,12 @@
 `-version   "app version"`  
 `==================================================`

-**Output for   _testParser.parseAndExecute( "-color 100 5 255 -file \"hi all.txt\"" );_  :**
+**Output for     _testParser.parseAndExecute( "-color 100 5 255 -file \"hi all.txt\"" );_    :**

-`Loading file "hi all.txt"  `
+`Loading file "hi all.txt"`  
 `Set color to R:100,G:5,B:255  `

-**Output for   _testParser.parseAndExecute( "-echo; p1 p2 p3 p4 -color 0 0 0" );_  :**
+**Output for     _testParser.parseAndExecute( "-echo; p1 p2 p3 p4 -color 0 0 0" );_    :**

 `p1,p2,p3,p4`  
 `Set color to R:0,G:0,B:0`  
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Miguel Alejan. Moreno Barrientos</dc:creator><pubDate>Tue, 10 May 2016 17:13:24 -0000</pubDate><guid>https://sourceforge.nete8d3ada47a0aabd987e6804cc7bfdd2df1b7bbe3</guid></item><item><title>Home modified by Miguel Alejan. Moreno Barrientos</title><link>https://sourceforge.net/p/cla/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -12,3 +12,89 @@

 CLA example:

+       CLAParser testParser = new CLAParser();  
+         
+       // param -?
+       testParser.addDefaultHelpParameter( System.out, "Test CLA, for Wiki", "?", "-" );  
+       // param -version  
+       testParser.addParameter( new Parameter(
+           "version",  // name
+           "-", "",  // prefix, sufix
+           "app version",  // description
+           false,   // required
+           0, 0,  // min-max cardinality
+           null,  // fixed values
+           (p,v) -&amp;gt; {   // executor
+               System.out.println( CLAParser.LIBNAME + ", v" + CLAParser.VERSION );  
+               System.exit( 0 );  
+           },  
+           Integer.MIN_VALUE + 1  // executor order
+       ) );  
+       // param -echo;
+       testParser.addParameter( new Parameter(  
+           "echo",  
+           "-", ";",  
+           "echo values to console",  
+           false,  
+           0, Integer.MAX_VALUE,  
+           null,  
+           (p,v) -&amp;gt; System.out.println( String.join( ",", v ) ),
+           0 ) );  
+       // param -file
+       testParser.addParameter( new Parameter(  
+           "file",  
+           "-", "",  
+           "load file",  
+           false,  
+           1, 1,  
+           null,  
+           (p,v) -&amp;gt; System.out.println( "Loading file \"" + v.get( 0 ) + "\"" ),
+           10 ) );
+       // param -color
+       testParser.addParameter( new Parameter(  
+           "color",  
+           "-", "",  
+           "set RGB color. Usage: -color R G B",  
+           false,  
+           3, 3,  
+           null,  
+           (p,v) -&amp;gt; {
+               int r = Integer.parseInt( v.get( 0 ) );
+               int g = Integer.parseInt( v.get( 1 ) );
+               int b = Integer.parseInt( v.get( 2 ) );
+               System.out.println( "Set color to R:" + r + ",G:" + g + ",B:" + b );
+           },
+           20 ) );
+           
+       try
+       {
+           testParser.parseAndExecute( "-?" );
+       }
+       catch ( Exception e )
+       {
+           e.printStackTrace();
+       }
+
+**Output:**
+
+`==================================================`  
+`Help:`  
+`Test CLA, for Wiki`  
+`parameter [values{cardinality}]   "description"`  
+`__________________________________________________`  
+`-?   "Help about this command"`  
+`-color value{3}   "set RGB color. Usage: -color R G B"`  
+`-echo; value{0-inf}   "echo values by console"`  
+`-file value{1}   "load file"`  
+`-version   "app version"`  
+`==================================================`  
+
+**Output for   _testParser.parseAndExecute( "-color 100 5 255 -file \"hi all.txt\"" );_  :**
+
+`Loading file "hi all.txt"  `
+`Set color to R:100,G:5,B:255  `
+
+**Output for   _testParser.parseAndExecute( "-echo; p1 p2 p3 p4 -color 0 0 0" );_  :**
+
+`p1,p2,p3,p4`  
+`Set color to R:0,G:0,B:0`  
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Miguel Alejan. Moreno Barrientos</dc:creator><pubDate>Tue, 10 May 2016 17:13:24 -0000</pubDate><guid>https://sourceforge.net6ebd12a27be9d5cbef6a37e4b0e919829e1584d1</guid></item><item><title>Home modified by Miguel Alejan. Moreno Barrientos</title><link>https://sourceforge.net/p/cla/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,14 @@
-Welcome to your wiki!
+## CLA (Command Line Args)

-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
+***

-The wiki uses [Markdown](/p/cla/wiki/markdown_syntax/) syntax.
+_CLA_ is a small Java library to parse parameters from command line or from a string.
+CLA parameters are customizable and can be optionally executed using a CLA executor.

-[[members limit=20]]
-[[download_button]]
+CLA requires **JRE 8+**
+
+CLA library consists of three classes and an interface: _**CLAParser**_, _**Parameter**_, _**ParsedParameterMap**_, _**ParamExecutor**_ _(interface)_
+
+
+CLA example:
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Miguel Alejan. Moreno Barrientos</dc:creator><pubDate>Tue, 10 May 2016 17:13:23 -0000</pubDate><guid>https://sourceforge.netcee106d9ab2ab5de55918e710bf286ee71d2b464</guid></item><item><title>Home modified by Miguel Alejan. Moreno Barrientos</title><link>https://sourceforge.net/p/cla/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/cla/wiki/markdown_syntax/"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;h6&gt;Project Members:&lt;/h6&gt;
	&lt;ul class="md-users-list"&gt;
		&lt;li&gt;&lt;a href="/u/mamb/"&gt;Miguel Alejan. Moreno Barrientos&lt;/a&gt; (admin)&lt;/li&gt;
		
	&lt;/ul&gt;&lt;br/&gt;
&lt;p&gt;&lt;span class="download-button-573216b01be1ce5f418a2474" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Miguel Alejan. Moreno Barrientos</dc:creator><pubDate>Tue, 10 May 2016 17:13:22 -0000</pubDate><guid>https://sourceforge.netffbd9237afd299dda3110989dd8055d406d1dfe0</guid></item></channel></rss>