diff sqlpython.py @ 92:fa8c9eb8908f

accepting command-line args
author catherine@cordelia
date Sun, 25 May 2008 01:35:08 -0400
parents 83de0cb04f12
children c5f601abc993
line wrap: on
line diff
--- a/sqlpython.py	Tue May 20 21:58:55 2008 -0400
+++ b/sqlpython.py	Sun May 25 01:35:08 2008 -0400
@@ -47,9 +47,6 @@
     def emptyline(self):
         pass
     
-    def do_quit(self, arg):
-        return 1
-    
     def fail(self, arg, do_everywhere=False):
         if self.failover:
             success, result = False, ''
@@ -118,8 +115,7 @@
         self.default('rollback %s;' % (arg), do_everywhere=True)        
         
     # shortcuts
-    do_q = do_quit
-    do_exit = do_quit
+    do_exit = cmd2.Cmd.do_quit
 
     stmtEndSearchString = r'(.*)(%s)\s*(\d+)?\s*$' % terminatorSearchString
     statementEndPattern = re.compile(stmtEndSearchString, re.MULTILINE | re.DOTALL)