Re: [Jargp-general] Is there anyone out there?
Brought to you by:
dsosnoski
|
From: Matthew W. <un...@id...> - 2005-03-18 00:20:18
|
Brian Hawkins wrote: > I was able to do this with very few changes to the system. I created a > new class that extended StringListDef called NoFlagArgDef and the flag > for it is ' '. (an empty space). Then when the ArgumentProcessor hits > an option that has no flag it pretends it is the ' ' flag. It works > really good. How do you want the changes I've made? Oh, that's right. I was actually planning on implementing something like that, but behaving differently - more like "foo -m arg1 -m arg2 -m arg3" to generate an array of size three. I'd prefer to discuss which approach is better (or if supporting both is reasonable) first. Why don't you upload a patch for now? > would like to fix is the way it handles number options. The number must > be right next to the flag "-t2" works but "-t 2" does not. Given that JArgP is in use 'in the wild,' I think that changing the behavior would be a very bad thing. -- Matthew Weigel |