# Exit command
if ($line == 'quit' or $line == 'q') break;
+ # Help
+ if ($line == 'help' or $line == 'h') {
+ $line = str_repeat('-',20)."\n";
+ echo $line . trim("
+help,h
+quit,q
+db=[NAME]
+table=[NAME]
+action,a=[ls,reset]
+ ")."\n" . $line;
+
+ continue;
+ }
+
# Set params
while ($line and (0
or preg_match("/^([\w\.]+)='([^']+)'/",$line,$args)
break;
}
+ if (empty($Db)) {
+ echo "Database is missing, try help\n";
+ break;
+ }
#bye($Db::p());
if ($Db->p('debug') == 'shell') {
debug($Db->p());