> How does Pharo execute classes from the command line?

You can pass the filename of a .cs/.st file to the VM that gets
filed-in on startup.

> Is there a way to specify the class and the method to be called?

Not directly.

> Are command line arguments available?

$ squeak --help
Usage: squeak [<option>...] [<imageName> [<argument>...]]
       squeak [<option>...] -- [<argument>...]

FBDev <option>s:
  -fbdev <dev>          use framebuffer device <dev> (default: /dev/fb)
  -kbmap <file>         load keymap from <file> (default: use kernel keymap)
  -msdev <dev>          use mouse device <dev> (default: /dev/psaux)
  -msproto <protocol>   use the given <protocol> for the mouse (default: ps2)
  -vtlock               disallow all vt switching (for any reason)
  -vtswitch             enable keyboard vt switching (Alt+FNx)

Common <option>s:
  -encoding <enc>       set the internal character encoding (default: MacRoman)
  -help                 print this help message, then exit
  -memory <size>[mk]    use fixed heap size (added to image size)
  -mmap <size>[mk]      limit dynamic heap size (default: 1024m)
  -noevents             disable event-driven input support
  -notimer              disable interval timer for low-res clock
  -pathenc <enc>        set encoding for pathnames (default: UTF-8)
  -plugins <path>       specify alternative plugin location (see manpage)
  -textenc <enc>        set encoding for external text (default: UTF-8)
  -version              print version information, then exit
  -vm-<sys>-<dev>       use the <dev> driver for <sys> (see below)
Deprecated:
  -display <dpy>        quivalent to '-vm-display-X11 -display <dpy>'
  -headless             quivalent to '-vm-display-X11 -headless'
  -nodisplay            quivalent to '-vm-display-null'
  -nosound              quivalent to '-vm-sound-null'
  -quartz               quivalent to '-vm-display-Quartz'

Notes:
  <imageName> defaults to `squeak.image'.
  -vtlock disables keyboard vt switching even when -vtswitch is enabled
  If `-memory' is not specified then the heap will grow dynamically.
  <argument>s are ignored, but are processed by the Squeak image.
  The first <argument> normally names a Squeak `script' to execute.
  Precede <arguments> by `--' to use default image.

Available drivers:
  vm-sound-null
  vm-sound-custom
  vm-display-custom
  vm-display-null
  vm-display-fbdev

-- 
Lukas Renggli
www.lukas-renggli.ch

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

Reply via email to