Here is my "diff" to make it happen.  It works great.  I would much
prefer if this were part of the standard H2 distribution so I don't
have to manage copying these changes from release to release.  The new
class is named Shell2 just so I could easily diff the two:

jon:h2 jcarlson$ diff src/main/org/h2/tools/Shell.java src/main/org/h2/
tools/Shell2.java
37c37
< public class Shell extends Tool implements Runnable {
---
> public class Shell2 extends Tool implements Runnable {
74c74
<         new Shell().runTool(args);
---
>         new Shell2().runTool(args);
112a113
>         String sql = null;
123a125,126
>             } else if (arg.equals("-sql")) {
>                 sql = args[++i];
136c139,143
<         promptLoop();
---
>         if (sql == null) {
>                       promptLoop();
>         } else {
>                       execute(sql);
>         }

Thanks!

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to