On 09/04/2013 12:44, Alex Merry wrote:
On 08/04/13 12:07, David Matthews wrote:
I don't like "usestring" myself. "eval" is definitely better. I see what you mean about having to escape the string if it has unusual characters in it. I don't really like the idea of having a special "load file" option, though. It seems too much like a special case.
Well, the --eval option would work for Quantomatic (after all, we control the relative paths, so we can make sure there are no odd characters), but - for the interpreter in particular - I think that "start in this saved state" is a reasonable option.
I've added a --eval argument. We'll see how that goes and think about other possibilities once there's been an opportunity to try this out.
--eval and --use can be mixed on the command line and are executed in order before the main loop is entered. If any fail or raise an exception the whole poly command exits with an OS.Process.failure result.
David