Hi David,

good idea. I have called it --LX instead of --init because it is similar to ⎕LX. The creation of a .log file for non-testcase (.tc) files was actually a fault that has been fixed.
SVN 332.

/// Jürgen


On 06/17/2014 07:18 AM, David B. Lamkins wrote:
Feature request:

Add a command-line option to pass a first command to the interpreter.

For example:

$ apl --init ')LOAD foo'

Note the ways in which the example differs from $ apl -f foo.apl :

- the file is loaded from the workspace directory
- no foo.apl.log file is created
- the contents of foo.apl are not echoed to the session during loading

Alternative:

There may be other uses for --init 'command', but )LOAD and )COPY are
the most obvious. An alternative implementation would be to wire in just
those two cases, as in:

$ apl --load foo
$ apl --copy foo

Again, the file passed to --load or --copy would be resolved relative to
the workspace (i.e. )LIB 0) path.





Reply via email to