I'm having trouble figuring out how to pass arguments to a an object in the pharo image via the command line.
I know how to start the image from the command line by
pharovm image.image
But how can I register an object to respond to the next arguments that would be passed?
pharovm image.image do something
You can use CLAP library, that would support CLI parameters: https://github.com/pharo-contributions/clap-st
Then you can run something like ./pharovm --headless pharo.image clap yourCommand yourParameter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With