Subbu - I didn’t understand your point? How would I know to do pharo -- --list , by looking at the output of —help? (And in fact that doesn’t work on OSX, it prompts me for an image - thus reinforcing my point that the default image doesn’t appear to work, at least not in osx).
I swear a year or two ago, help told you how to do this? As it is now, a new user would have no clue - I think it would be helpful if the vm —help suggested you try “pharo <name.image> —help” for further image based parameters. (And all cog users agreed to support —help in images so that this message was true). Tim > On 30 Apr 2019, at 09:21, K K Subbu <kksubbu...@gmail.com> wrote: > > On 30/04/19 3:35 AM, Tim Mackinnon wrote: >> Anyway - I tried using the command line on OSX ( I noticed they had >> used pharo, and not pharo-ui — which I never understood: why is it >> not pharo for ui and pharo-cmd for terminal, as it burns most >> people?) - and typed “pharo —help”, and you get an impressive long >> list of commands - however it doesn’t show you the useful Image >> commands anymore? So you would never know to use “pharo Pharo.image >> —list”. >> A while back it showed you that - but its now gone which seems a >> shame? > > $ pharo --help > > will pass the option --help to the VM, not the virtual image. You have to > "Precede <arguments> by '--' to terminate VM options and begin the virtual > image and its options. > > $ pharo -- --list > > will pass the --list to the default image - ${PHARO_IMAGE:-Pharo.image} > >> I also notice at the bottom of the list, its says the the image name >> defaults to Pharo.image - however I haven’t noticed that works at all >> - you have to specify an image, so thats a bit misleading. > $ PHARO_IMAGE=Pharo.image ./pharo -- eval 3+4 > 7 > $ PHARO_IMAGE=Pharo.image ./pharo -- --help > Usage: [<subcommand>] [--help] [--copyright] [--version] [--list] [ --no-quit > ] > --help print this help message > --copyright print the copyrights > --version print the version for the image and the vm > --list list a description of all active command line handlers > --no-quit keep the image running without activating any other > command line handler > <subcommand> a valid subcommand in --list > > Preference File Modification: > --preferences-file load the preferences from the given <FILE> > --no-default-preferences do not load any preferences from the > default locations > > Documentation: > A PharoCommandLineHandler handles default command line arguments and options. > The PharoCommandLineHandler is activated before all other handlers. > It first checks if another handler is available. If so it will activate the > found handler. > > $ PHARO_IMAGE=Pharo.image ./pharo -- --list > Currently installed Command Line Handlers: > Fuel Loads fuel files > config Install and inspect Metacello Configurations from the > command line > save Rename the image and changes file > update Load updates > printVersion Print image version > st Loads and executes .st source files > test A command line test runner > clean Run image cleanup > get Install catalog projects from the command line (consult > catalog at http://catalog.pharo.org) > eval Directly evaluates passed in one line scripts > > HTH .. Subbu >