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.
                                          
_________________________________________________________________
Installez gratuitement les nouvelles Emoch'ticones !
http://www.ilovemessenger.fr/emoticones/telecharger-emoticones-emochticones.aspx

Attachment: SmalltalkImage-extractMinusParameters.st
Description: Binary data

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to