Overview
Features
Download
Documentation
Community
Add-Ons & Services

Options with both .repeatable and .binding set

Please post support and help requests here.

Options with both .repeatable and .binding set

Postby qoole » 04 Jun 2009, 18:06

Hi there,

If I do something similar to the following

Code: Select all
options.addOption("id","","").required(true).binding("Main.ID");
options.addOption("name","","").repeatable(true).required(true).binding("Main.Name");


if the id option is specified i can access it like so:
Code: Select all
config().getInt("Main.ID",0);


But what happens if someone specifies more than one 'name' option? how do i get to them? as there's no "getStrings" or similar function?

Thanks in advance,
Alex
qoole
 
Posts: 7
Joined: 04 Jun 2009, 17:43

Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests