jastrachan | 5 Aug 17:43 2004

Re: [groovy-dev] Support for python's -i flag

On 5 Aug 2004, at 16:34, Yuri Schimke wrote:
> Sounds quite useful.  But we are currently following perl/ruby command 
> line args, and using -i for in-place editing, search and replace kind 
> of thing.
> How about?
> groovysh --include groovy
> groovysh (groovy.ui.InteractiveShell) currently ignores the command 
> line arguments.  But you can copy some of the code from 
> groovy.ui.GroovyMain  to add command line handling and execute the 
> file contents before hand.

Sounds like a good idea.

I can imagine this being really handy for having a script which sets up 
a bunch of resources (e.g. JDBC connections and so forth) so that you 
can then just do some interactive querying etc.