How does the <param> element work? In your example:
prompt> call 01234567
Where would I find the number? Can you give my the short version, without all the work of another Wiki page?
I just noticed the new Wiki page. Helpful. Please let me know when you can fill in the section on the Params.
Ray S.
Hi Ray,
the fastest way is giving you a couple of examples.
Please find attached two different examples:
test: it is using a regular parameter
test2: it is using the default parameter
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:
test> call name fellow
In "test2", the name is the default parameter, that so doesn't require the parameter name:
test2> call fellow
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.
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).
Please let me know how you want to procede.
Thanks a lot
Regards
Marco
Files for example "test"
Files for example "test2"
Hi Ray,
since I've not received any reply back, I guess your question has been replied.
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.
I will update the WIKI pages accordingly.
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.
Thanks
Marco