Stefan Manegold wrote:
On Mon, Jan 28, 2008 at 07:46:48PM +0100, Martin Kersten wrote:
Using this kind of switches is not in line with the other switches
- the short-cut version sofar has been aligned with the first letter of the command
exceptions: -? / --help -| / --pager
yes, coming from the original Ingres /PostgreSQL client tool also the MySQL world
Unfortunately our alphabet has only 26 characters, and some (unseful) long options happen to start with the same one...
- \ commands may optionally contain arguments, which seems that it is more in line to use e.g. '\g true' and '\g false' Same holds for '\A' and '\a'
\G / \g is chosen to be in line with \A / \a.
A toggle (like \t) was discarded, as it would require the user to recall the current state.
Not a real problem in practice, because you see the effect. I would go for \g [on|off| <empty>] where <empty> is the toggle similar for \a and \t It is a last step in streamlining the interface, which is possible in a major release.
- \g is in Postgresql (and mysql) used as a \go shortcut
since we (i.e., MonetDB) does not have a \go functionality, I see no problem.
but users come from those domains..:) Even Oracle has the same I think.
- \g switch does not apply to mil and mal and should therefore be placed in the language specific help sections
it is! (only for SQL & XQuery)
confirmed after my roll forward.
Stefan
Stefan Manegold wrote:
Update of /cvsroot/monetdb/pathfinder/src/tools/Tests In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30003
Modified Files: mclient-lxquery--help.stable.out mclient-lxquery--help.stable.out.Darwin Log Message:
approved new \G / \g switches
Index: mclient-lxquery--help.stable.out =================================================================== RCS file: /cvsroot/monetdb/pathfinder/src/tools/Tests/mclient-lxquery--help.stable.out,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- mclient-lxquery--help.stable.out 19 Dec 2007 22:52:11 -0000 1.5 +++ mclient-lxquery--help.stable.out 28 Jan 2008 18:35:44 -0000 1.6 @@ -1,12 +1,14 @@ stdout of test 'mclient-lxquery--help` in directory 'src/tools` itself:
-# 23:46:23 > -# 23:46:23 > Mserver "--config=/ufs/manegold/_/scratch0/Monet/Testing/Stable/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/etc/MonetDB.conf" --debug=10 --set "monet_mod_path=/ufs/manegold/_/scratch0/Monet/Testing/Stable/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/lib64/MonetDB4:/ufs/manegold/_/scratch0/Monet/Testing/Stable/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/lib64/MonetDB4/lib:/ufs/manegold/_/scratch0/Monet/Testing/Stable/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/lib64/MonetDB4/bin" --set "gdk_dbfarm=/ufs/manegold/_/scratch0/Monet/Testing/Stable/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/var/MonetDB4/dbfarm" --set "sql_logdir=/ufs/manegold/_/scratch0/Monet/Testing/Stable/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/var/MonetDB4/sql_logs" --set "xquery_logdir=/ufs/manegold/_/scratch0/Mon
et
/Testing/Stable/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/var/MonetDB4/xquery_logs" --set mapi_open=true --set xrpc_open=true --set mapi_port=34548 --set xrpc_port=49429 --set monet_prompt= --trace "--dbname=mTests_src_tools" "--dbinit= module(pathfinder);" ; echo ; echo Over.. -# 23:46:23 > +# 19:33:05 > +# 19:33:05 > Mserver "--config=/ufs/manegold/_/scratch0/Monet/Testing/Current/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/etc/MonetDB.conf" --debug=10 --set "monet_mod_path=/ufs/manegold/_/scratch0/Monet/Testing/Current/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/lib64/MonetDB4:/ufs/manegold/_/scratch0/Monet/Testing/Current/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/lib64/MonetDB4/lib:/ufs/manegold/_/scratch0/Monet/Testing/Current/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/lib64/MonetDB4/bin" --set "gdk_dbfarm=/ufs/manegold/_/scratch0/Monet/Testing/Current/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/var/MonetDB4/dbfarm" --set "sql_logdir=/ufs/manegold/_/scratch0/Monet/Testing/Current/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/var/MonetDB4/sql_logs" --set "xquery_logdir=/ufs/manegold/_/scratc
h0
/Monet/Testing/Current/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/var/MonetDB4/xquery_logs" --set mapi_open=true --set xrpc_open=true --set mapi_port=31795 --set xrpc_port=42301 --set monet_prompt= --trace "--dbname=mTests_src_tools" "--dbinit= module(pathfinder);" ; echo ; echo Over.. +# 19:33:05 >
-# MonetDB Server v4.20.1 -# based on GDK v1.20.1 + + +# MonetDB Server v4.21.0 +# based on GDK v1.21.0 # Copyright (c) 1993-2007, CWI. All rights reserved. # Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs; dynamically linked. # Visit http://monetdb.cwi.nl/ for further information. @@ -47,6 +49,8 @@ \|cmd - pipe result to process, or stop when no command is given \h - show the readline history \t - toggle timer +\G - switch to algebra frontend +\g - switch to old frontend \f - result format: dm or xml[-noheader][-typed|-noroot|-root-FOOBAR] \L file - save client/server interaction \X - trace mclient code
Index: mclient-lxquery--help.stable.out.Darwin =================================================================== RCS file: /cvsroot/monetdb/pathfinder/src/tools/Tests/mclient-lxquery--help.stable.out.Darwin,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- mclient-lxquery--help.stable.out.Darwin 19 Dec 2007 22:52:11 -0000 1.4 +++ mclient-lxquery--help.stable.out.Darwin 28 Jan 2008 18:35:44 -0000 1.5 @@ -1,12 +1,14 @@ stdout of test 'mclient-lxquery--help` in directory 'src/tools` itself:
-# 23:46:23 > -# 23:46:23 > Mserver "--config=/ufs/manegold/_/scratch0/Monet/Testing/Stable/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/etc/MonetDB.conf" --debug=10 --set "monet_mod_path=/ufs/manegold/_/scratch0/Monet/Testing/Stable/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/lib64/MonetDB4:/ufs/manegold/_/scratch0/Monet/Testing/Stable/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/lib64/MonetDB4/lib:/ufs/manegold/_/scratch0/Monet/Testing/Stable/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/lib64/MonetDB4/bin" --set "gdk_dbfarm=/ufs/manegold/_/scratch0/Monet/Testing/Stable/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/var/MonetDB4/dbfarm" --set "sql_logdir=/ufs/manegold/_/scratch0/Monet/Testing/Stable/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/var/MonetDB4/sql_logs" --set "xquery_logdir=/ufs/manegold/_/scratch0/Mon
et
/Testing/Stable/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/var/MonetDB4/xquery_logs" --set mapi_open=true --set xrpc_open=true --set mapi_port=34548 --set xrpc_port=49429 --set monet_prompt= --trace "--dbname=mTests_src_tools" "--dbinit= module(pathfinder);" ; echo ; echo Over.. -# 23:46:23 > +# 19:33:05 > +# 19:33:05 > Mserver "--config=/ufs/manegold/_/scratch0/Monet/Testing/Current/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/etc/MonetDB.conf" --debug=10 --set "monet_mod_path=/ufs/manegold/_/scratch0/Monet/Testing/Current/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/lib64/MonetDB4:/ufs/manegold/_/scratch0/Monet/Testing/Current/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/lib64/MonetDB4/lib:/ufs/manegold/_/scratch0/Monet/Testing/Current/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/lib64/MonetDB4/bin" --set "gdk_dbfarm=/ufs/manegold/_/scratch0/Monet/Testing/Current/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/var/MonetDB4/dbfarm" --set "sql_logdir=/ufs/manegold/_/scratch0/Monet/Testing/Current/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/var/MonetDB4/sql_logs" --set "xquery_logdir=/ufs/manegold/_/scratc
h0
/Monet/Testing/Current/prefix.--enable-strict_--disable-debug_--enable-optimize_--disable-assert/var/MonetDB4/xquery_logs" --set mapi_open=true --set xrpc_open=true --set mapi_port=31795 --set xrpc_port=42301 --set monet_prompt= --trace "--dbname=mTests_src_tools" "--dbinit= module(pathfinder);" ; echo ; echo Over.. +# 19:33:05 >
-# MonetDB Server v4.20.1 -# based on GDK v1.20.1 + + +# MonetDB Server v4.21.0 +# based on GDK v1.21.0 # Copyright (c) 1993-2007, CWI. All rights reserved. # Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs; dynamically linked. # Visit http://monetdb.cwi.nl/ for further information. @@ -46,6 +48,8 @@ \>file - save response in file, or stdout if no file is given \|cmd - pipe result to process, or stop when no command is given \t - toggle timer +\G - switch to algebra frontend +\g - switch to old frontend \f - result format: dm or xml[-noheader][-typed|-noroot|-root-FOOBAR] \L file - save client/server interaction \X - trace mclient code
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Monetdb-pf-checkins mailing list Monetdb-pf-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers