[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Acceptable quoting of command-line arguments?

From: Albert Dvornik <dvornik+git_at_gmail.com>
Date: Wed, 5 May 2010 23:57:33 -0400

Right now, TortoiseMerge accepts command line arguments with values
either unquoted (-key:val) or with just the value quoted (-key:"val").
 In particular, quoting the key with the value ("-key:val") is not
currently supported.

Unfortunately, environments where the command line is generated from
an argv-like array (e.g. Cygwin or MSYS) don't have a good way of
divining where to put quotes for arguments that contain whitespace, so
they quote the whole string. This makes invoking TortoiseMerge there
more complicated, although you *can* use cmd /c as an intermediary to
get the right quoting.

So, my questions are:

1. Would it make sense to allow "-key:val" quoting for TortoiseMerge
arguments? (I'm willing to submit a patch if that would help.)

2. Would it make sense to allow "-key:val" for all other commands that
use CCmdLineParser as well? Or are there exceptions?

3. Any other concerns?

(If the answer is "not our problem", I can understand that...)

Thank you,
--bert

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2603896

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-05-06 06:30:53 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.