Bugs item #1927153, was opened at 2008-03-27 15:36
Message generated for change (Comment added) made by arjenderijke
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1927153&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Mapi
Group: MonetDB5 CVS Head
Status: Closed
Resolution: Invalid
Priority: 5
Private: No
Submitted By: Arjen de Rijke (arjenderijke)
Assigned to: Sjoerd Mullender (sjoerd)
Summary: Problem with mclient -Xdebug parameter

Initial Comment:
Using monetdb build from cvs of two days ago, mclient has a problem with the 
-Xdebug parameter.

If you try to connect to an mserver5 with the command

mclient -lsql -ddatabasename -Xdebug

you get the error

MAPI  = [EMAIL PROTECTED]:50000
ACTION= mapi_start_talking
ERROR = !database 'ebug' does not exist

if you try the command

mclient -Xdebug -lsql -ddatabasename

it works as expected.

OS = Fedora 8 linux, standard CWI desktop

----------------------------------------------------------------------

>Comment By: Arjen de Rijke (arjenderijke)
Date: 2008-03-27 17:05

Message:
Logged In: YES 
user_id=1836138
Originator: YES

For the record, for my original bugreport RTFM does apply. But the
comments by mr-meltdown are valid. And the order of the parameters should
not matter. 
Combining short parameter with options can lead to confusing situations. I
am not sure if that is allowed in other linux commands. 
 

----------------------------------------------------------------------

Comment By: Sjoerd Mullender (sjoerd)
Date: 2008-03-27 16:39

Message:
Logged In: YES 
user_id=43607
Originator: NO

You are right, both that --Xdebug (-X) is a weird option (--debug makes
much more sense) and that multiple -d arguments could do with a warning.
--Xdebug: changing this to --debug is not hard, but what about -X?  Both
-d and -D are taken, -X does not make sense when the long option is
--debug.  Plus it's an interface change, so not suitable for the stable
version.
-d -d: There are more options where it makes sense to warn about multiple
occurrences.

----------------------------------------------------------------------

Comment By: Fabian (mr-meltdown)
Date: 2008-03-27 16:04

Message:
Logged In: YES 
user_id=963970
Originator: NO

by the way, even though the invocation is invalid, it is weird that as
last argument it doesn't work, whereas it does if as first argument.
(i.e. mclient doesn't warn/error that multiple -d arguments won't ever
work)

----------------------------------------------------------------------

Comment By: Fabian (mr-meltdown)
Date: 2008-03-27 16:02

Message:
Logged In: YES 
user_id=963970
Originator: NO

The confusion clearly comes from Java here, where the argument /is/
-Xdebug by convention.  I'm not sure why --Xdebug or -X was chosen in
mclient, but maybe it's wise to change that, since in Java -Xyyyy means
"extended", as in not really an option you normally would use, and subject
to change, hence the Java option is just debug, but flagged as don't use it
if you have no clue what you're doing.

This convention obviously doesn't hold for mclient.

----------------------------------------------------------------------

Comment By: Sjoerd Mullender (sjoerd)
Date: 2008-03-27 15:56

Message:
Logged In: YES 
user_id=43607
Originator: NO

Use --Xdebug, not -Xdebug.  Count the minuses.
-X is equivalent to --Xdebug, but if you use -Xdebug, the option is parsed
as -X -d ebug (or --Xdebug --database=ebug), so you get what you ask for.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1927153&group_id=56967

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to