OK, I thought you had the second argument with multivalued.

Which Karaf version are you using ?

Regards
JB

On 08/04/2019 16:00, lichtin wrote:
> But the default for multivalued() is already false.
> 
> 
> jbonofre wrote
>> Hi,
>>
>> Did you set multivalued=false on the argument ?
>>
>> Else it will be multivalued, so the same completion again.
>>
>> Regards
>> JB
>>
>> On 08/04/2019 09:26, Martin Lichtin wrote:
>>> Hi
>>>
>>> Having a problem with Karaf command arguments completion, it seems to not
>>> work for 3 arguments?
>>> Something like
>>>
>>>   @Argument(index = 0, required = true, description = "A1")
>>>   @Completion(A1Completer.class)
>>>   private String a1;
>>>   @Argument(index = 1, required = true, description = "A2")
>>>   @Completion(A2Completer.class)
>>>   private String a2;
>>>   @Argument(index = 2, required = true, description = "A3")
>>>   @Completion(A3Completer.class)
>>>   private String a3;
>>>
>>> works only up to the 2nd argument, but the third completer is never
>>> called, instead A2Completer is called again.
>>> Anyone else seeing this? It's with Karaf 4.1.7
>>>
>>> - Martin
>>>
>>
>> -- 
>> Jean-Baptiste Onofré
> 
>> jbonofre@
> 
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
> 
> 
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to