On 30 December 2013 19:14, Levente Uzonyi leves@elte.hu wrote:
On Mon, 30 Dec 2013, Frank Shearar wrote:
On 30 December 2013 18:36, commits@source.squeak.org wrote:
A new version of CommandLine was added to project The Inbox: http://source.squeak.org/inbox/CommandLine-fbs.3.mcz
==================== Summary ====================
Name: CommandLine-fbs.3 Author: fbs Time: 30 December 2013, 6:36:22.399 pm UUID: a8ce5a55-8bb5-ac4b-a112-eb308ce3bf53 Ancestors: CommandLine-fbs.2
If launched headless (with option -headless or -vm-display-null), use the CommandLineToolSet instead of the StandardToolSet.
We must startUp: before AutoStart because AutoStart triggers the processing of startup scripts (because it asks all registered AbstractLaunchers - in particular, ProjectLauncher - to do their thing).
=============== Diff against CommandLine-fbs.2 ===============
This allows headless things to report bad things happening, like dumping syntax error notifications to stdout and exiting.
People who use RFB won't like this, because it quits the image on the first error.
Does RFB get used in a _headless_ manner? An alternative would be to add a new option on which I can switch. Maybe -exec? Then I can add a SmalltalkImage >> #isReallyHeadlessAsInHasNoGuiAtAllUnlikeRfb, and switch off that. We'd then invoke the image, in a CLI-friendly way, as
squeak -exec Foo.image the-script.st
Except that you can't just do that, because "Unknown option encountered!" and then a dialog pops up asking you to locate the image you want to run.
frank
Levente
frank