Nah, you can do it way easier:
$ cat run.st
NonInteractiveTranscript stdout install.
Transcript show: Smalltalk commandLine arguments; cr.
Smalltalk quitPrimitive.
$ ./pharo Pharo.image run.st 1 2 3
#('1' '2' '3')
HTH,
Sven
> On 23 Oct 2014, at 20:52, Esteban A. Maringolo <[email protected]> wrote:
>
> 2014-10-23 15:19 GMT-03:00 Esteban Lorenzano <[email protected]>:
>>
>>> On 23 Oct 2014, at 20:16, Esteban A. Maringolo <[email protected]> wrote:
>>> Do I have to define a subclass of STCommandLineHandler?
>> yes
>
> I thought so.
>
>>> How can I capture the --port argument? For what I saw, only "boolean"
>>> parameters can be defined (--quit, --save, etc, without arguments). It
>>> is, no getopts compatibility.
>> no idea… we can work on that… is necessary :)
>
> The VM itself has its own command parameters, are the parameters
> handled and/or passed to the image? If so, how?
>
> Regards!
>