<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="4">Thanks Gerald, <br>
</font></p>
<p><font size="4">I tested a bit. As expected, it raises the
debugger when I start with a faulty script.</font></p>
<p><font size="4">A few observations:<br>
</font></p>
<p><font size="4">1) One can get the help without the open/close VM
window sequence with the VM -headless option:</font></p>
<p><font size="4">../VM/squeak -headless cuis.image -h</font></p>
<p><font size="4">A bit odd but it may have the side effect for the
newbie to understand where are going the different options.<br>
</font></p>
<p><font size="4">2) If I understand correctly, after the -- option
I can add option I can then process myself in the image? If so I
can use it to process option passed to DrGeo, for example to
open a sketch file from a file manager, right ?</font></p>
<p><font size="4">3) Spelling error: -s <scriptFile> Evaluate
code <b>ein</b> <scriptFile><br>
</font></p>
<p>4) I will test further the -e option in future evolution of my
start up script.</p>
<p>5) If integrated in the image, I will document it in the Cuis
Book.<br>
</p>
<p>Hilaire<br>
</p>
<div class="moz-cite-prefix">Le 08/01/2023 à 17:21, Gerald Klix via
Cuis-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:0be54a85-2374-7970-0d7c-ceb237071c2a@klix.ch">Hi all, Hi
Juan,
<br>
<br>
I was bit annoyed by the impossibility to debug scripts and
packages
<br>
run or installed from the command line.
<br>
Therefore I added an option, ``-e <argument>``, that lets
you
<br>
set the exception class to handle before executing a script.
<br>
<br>
With the attached change set, you can now write:
<br>
<br>
squeak Cuis.image -e nil -s myScript.st
<br>
<br>
If ``myScript.st`` contains an error, a Debugger
<br>
will pop up.
<br>
<br>
<br>
HTH and Best Regards,
<br>
<br>
Gerald
</blockquote>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>