[Jargp-general] Changes to ArgumentProcessor
Brought to you by:
dsosnoski
|
From: Brian H. <bri...@ac...> - 2005-01-29 04:30:38
|
I have a project where I can get several items on the command line after the flagged options. For example -v -t 1 -d on task1 task2 task3 What I wanted to do was have a list variable receive the values task1, task2 and task3. 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? Brian |