http://code.google.com/p/pharo/issues/detail?id=2599 On Jun 29, 2010, at 4:30 PM, Adrien BARREAU wrote:
Hello all,
When I worked on a command-line tool, I discovered SmalltalkImage>>extractParameters.
I didn't find it very good, so I wrote the little method attached to this mail.
I think it could be useful. What do you think about that?
Here is an example: I suppose I run pharo with: `pharo myImage.image -minus1 'Hello' -minus2 -minus3 'Hello' 'World'`. This message will return a dictionary with: minus1 --> #(Hello) minus2 --> #() minus3 --> #('Hello' 'World').
The first extractParameters was quite strange, since it starts to look at the third parameter (or, the second can be used!), and can not return a list.
Adrien.
Vous voulez protéger votre vie privée ? La solution avec Internet Explorer 8 <SmalltalkImage-extractMinusParameters.st>_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project