<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to tickets</title><link href="https://sourceforge.net/p/click-lib/tickets/" rel="alternate"/><link href="https://sourceforge.net/p/click-lib/tickets/feed.atom" rel="self"/><id>https://sourceforge.net/p/click-lib/tickets/</id><updated>2017-01-27T01:03:30.127000Z</updated><subtitle>Recent changes to tickets</subtitle><entry><title>#2 Problem with Cmdinfo macros</title><link href="https://sourceforge.net/p/click-lib/tickets/2/?limit=25#6aa1" rel="alternate"/><published>2017-01-27T01:03:30.127000Z</published><updated>2017-01-27T01:03:30.127000Z</updated><author><name>Ray Silagi</name><uri>https://sourceforge.net/u/rsilagi/</uri></author><id>https://sourceforge.netce60f780e4ba990e0e4972a61cb0e89b8ab3b692</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hey,&lt;br/&gt;
So, thanks for fixing the comments in the XML file.  I would like to add some extra info about some of the commands or why these commands are grouped.  You are right about the spaces.  I've found it is better to make sub-commands instead of have longer commands with spaces.  It is better to have unique commands so the tab completion works better.&lt;/p&gt;
&lt;p&gt;Let me know when you are able to get around to fixing the comment thing.  Thanks again for a great CLI.&lt;/p&gt;
&lt;p&gt;Ray S.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#2 Problem with Cmdinfo macros</title><link href="https://sourceforge.net/p/click-lib/tickets/2/?limit=25#a29d" rel="alternate"/><published>2017-01-21T09:43:07.524000Z</published><updated>2017-01-21T09:43:07.524000Z</updated><author><name>zacmarco</name><uri>https://sourceforge.net/u/zacmarco/</uri></author><id>https://sourceforge.net33cf6857f3fbb1363c3344c5b989e6f3fe68b915</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Ray,&lt;/p&gt;
&lt;p&gt;sorry for the delay, I had a very busy start of the year.&lt;br/&gt;
What I would suggest is to get the latest development branch. Easiest way is to use git, performing this command&lt;/p&gt;
&lt;p&gt;git clone git://git.code.sf.net/p/click-lib/code click-lib-code&lt;/p&gt;
&lt;p&gt;Not sure, BTW, about your last request.&lt;br/&gt;
I guess you need the ability to add comments in the .xml file. That can be done, I need to spend some time on the parser, but definitely doable. Let me work on that one.&lt;/p&gt;
&lt;p&gt;Spaces in command name, in the context of CLIck, do not make much sense, if you need to have commands made of two or more words (like "list files"), what you are looking for is subcommands.&lt;/p&gt;
&lt;p&gt;If this is not what you are looking for, can you please give me more context about your request?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Marco&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with Cmdinfo macros</title><link href="https://sourceforge.net/p/click-lib/tickets/2/" rel="alternate"/><published>2016-12-21T19:37:01.855000Z</published><updated>2016-12-21T19:37:01.855000Z</updated><author><name>Ray Silagi</name><uri>https://sourceforge.net/u/rsilagi/</uri></author><id>https://sourceforge.net9f0abff802d00f8133c83a465ef7a25a25a10c5d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Zac,&lt;br/&gt;
I'm wondering if there is a new version.  I found a couple of minor problems in the version I have. In the cli.h there are some problems with the macros:&lt;/p&gt;
&lt;p&gt;click_get_param_num(cmdinfo) and click_get_param_name(cmdinfo,parmnum)&lt;/p&gt;
&lt;p&gt;The element paramtotnum and paramlist are not what is in struct cmdInfo. Also, when the macro's are expanded:&lt;/p&gt;
&lt;p&gt;p_name = (   if(cmdinfo-&amp;gt;paramlist&lt;span&gt;[parnum]&lt;/span&gt; &amp;amp;&amp;amp; parnum&amp;lt;=cmdinfo-&amp;gt;paramtotnum) \
        cmdinfo-&amp;gt;paramlist&lt;span&gt;[parnum]&lt;/span&gt;-&amp;gt;name \
        else \
        NULL)&lt;/p&gt;
&lt;p&gt;will not compile.  My compiler does not allow an if statement as the right-side statement.&lt;/p&gt;
&lt;p&gt;Please let me know the correct version to get. This is URL I'm using, with Buildroot:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://sourceforge.net/projects/click-lib/files/click-0.1.tar.bz2"&gt;http://sourceforge.net/projects/click-lib/files/click-0.1.tar.bz2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also, how much work is it to change clickbuilder to allow comments and spaces in command names.&lt;/p&gt;
&lt;p&gt;Ray S.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#1 How do I use &lt;param&gt; element?</title><link href="https://sourceforge.net/p/click-lib/tickets/1/?limit=25#bad7" rel="alternate"/><published>2016-02-24T09:49:30.854000Z</published><updated>2016-02-24T09:49:30.854000Z</updated><author><name>zacmarco</name><uri>https://sourceforge.net/u/zacmarco/</uri></author><id>https://sourceforge.nete557b05b915df6e6d2d261d3cde5d626e564648b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Ray,&lt;/p&gt;
&lt;p&gt;since I've not received any reply back, I guess your question has been replied.&lt;br/&gt;
Now, just to let you know that I am fixing all problems related to the number of parameter values, as there might be some ambiguity that I'm going to remove, while the default parameter has already been fixed in the "develop" branch.&lt;/p&gt;
&lt;p&gt;I will update the WIKI pages accordingly.&lt;/p&gt;
&lt;p&gt;Finally, I'm working on a full test script, and once it is finalized and all the tests pass, I will end up with a new release.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Marco&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#1 How do I use &lt;param&gt; element?</title><link href="https://sourceforge.net/p/click-lib/tickets/1/?limit=25#33f2" rel="alternate"/><published>2015-10-16T21:07:00.604000Z</published><updated>2015-10-16T21:07:00.604000Z</updated><author><name>zacmarco</name><uri>https://sourceforge.net/u/zacmarco/</uri></author><id>https://sourceforge.netd8b1e3d75b7c5b609cd5f4418703469c724e7c80</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; accepted&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: zacmarco&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#1 How do I use &lt;param&gt; element?</title><link href="https://sourceforge.net/p/click-lib/tickets/1/?limit=25#85b6" rel="alternate"/><published>2015-10-16T21:06:07.701000Z</published><updated>2015-10-16T21:06:07.701000Z</updated><author><name>zacmarco</name><uri>https://sourceforge.net/u/zacmarco/</uri></author><id>https://sourceforge.net129586fe9886a578dde96e2d388de1672cd3dc6f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Files for example "test2"&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#1 How do I use &lt;param&gt; element?</title><link href="https://sourceforge.net/p/click-lib/tickets/1/?limit=25#53f5" rel="alternate"/><published>2015-10-16T21:05:32.988000Z</published><updated>2015-10-16T21:05:32.988000Z</updated><author><name>zacmarco</name><uri>https://sourceforge.net/u/zacmarco/</uri></author><id>https://sourceforge.net8e758ad06a63cfd03db79a3c280921931ff5437b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Files for example "test"&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#1 How do I use &lt;param&gt; element?</title><link href="https://sourceforge.net/p/click-lib/tickets/1/?limit=25#7463" rel="alternate"/><published>2015-10-16T21:01:26.832000Z</published><updated>2015-10-16T21:01:26.832000Z</updated><author><name>zacmarco</name><uri>https://sourceforge.net/u/zacmarco/</uri></author><id>https://sourceforge.netde2de9d31b7027be9c426f7d52631225546dce86</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Ray,&lt;/p&gt;
&lt;p&gt;the fastest way is giving you a couple of examples.&lt;br/&gt;
Please find attached two different examples:&lt;/p&gt;
&lt;p&gt;test: it is using a regular parameter&lt;br/&gt;
test2: it is using the default parameter&lt;/p&gt;
&lt;p&gt;Both the apps just define one command (call). In "test" a regular parameter named "name" is expected. So to run the command you should type something like:&lt;/p&gt;
&lt;p&gt;test&amp;gt; call name fellow&lt;/p&gt;
&lt;p&gt;In "test2", the name is the default parameter, that so doesn't require the parameter name:&lt;/p&gt;
&lt;p&gt;test2&amp;gt; call fellow&lt;/p&gt;
&lt;p&gt;However, release 0.1 (the only one available as a package) does currently have a bug (recently found) in the handling of the default parameter, and even if the parser recognizes there is a default parameter, its value doesn't get added to the cmdinfo structure passed to the callback.&lt;/p&gt;
&lt;p&gt;The bug has already been found and fixed (you can see a preview of the fix in the top of "develop" branch on git repository). Since I'm planning a few modifications in the default parameter for the next release, what I suggest is to avoid using default parameters for now, and deal with regular parameters only. The complete solution will be ready in a few days, if needed I can plan an hotfix release (0.1.1).&lt;/p&gt;
&lt;p&gt;Please let me know how you want to procede.&lt;/p&gt;
&lt;p&gt;Thanks a lot&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Marco&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How do I use &lt;param&gt; element?</title><link href="https://sourceforge.net/p/click-lib/tickets/1/" rel="alternate"/><published>2015-10-15T21:36:34.661000Z</published><updated>2015-10-15T21:36:34.661000Z</updated><author><name>Ray Silagi</name><uri>https://sourceforge.net/u/rsilagi/</uri></author><id>https://sourceforge.net3ace40673c013f47ddb124fc44390fafbb61f2c9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;How does the &amp;lt;param&amp;gt; element work?   In your example:&lt;br/&gt;
prompt&amp;gt; call 01234567&lt;/p&gt;
&lt;p&gt;Where would I find the number?  Can you give my the short version, without all the work of another Wiki page?&lt;/p&gt;
&lt;p&gt;I just noticed the new Wiki page.  Helpful.  Please let me know when you can fill in the section on the Params.&lt;br/&gt;
Ray S.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How do I use &lt;param&gt; element?</title><link href="https://sourceforge.net/p/click-lib/tickets/1/" rel="alternate"/><published>2015-10-15T21:36:34.661000Z</published><updated>2015-10-15T21:36:34.661000Z</updated><author><name>Ray Silagi</name><uri>https://sourceforge.net/u/rsilagi/</uri></author><id>https://sourceforge.netcad22c27cd49c6d8b308eacca3982f77a3bfb186</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 1 has been modified: How do I use &amp;lt;param&amp;gt; element?&lt;br/&gt;
Edited By: zacmarco (zacmarco)&lt;br/&gt;
Status updated: u'open' =&amp;gt; u'accepted'&lt;br/&gt;
Owner updated: None =&amp;gt; u'zacmarco'&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>