summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-06-04 09:25:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-06-04 09:25:29 +0200
commitb8cec4a2571596692c1e0b27cc3953ecff712178 (patch)
tree2aadf52a5f0dea3af5d45c894f0370274e6042b2 /doc
parent840f2fae3995a3e263801ad07d1285d35ddd9485 (diff)
Add support for single quotes in option files
Diffstat (limited to 'doc')
-rw-r--r--doc/cli.110
-rw-r--r--doc/cli.xhtml11
-rw-r--r--doc/guide/index.xhtml12
3 files changed, 17 insertions, 16 deletions
diff --git a/doc/cli.1 b/doc/cli.1
index 739b845..ec7d9fc 100644
--- a/doc/cli.1
+++ b/doc/cli.1
@@ -186,11 +186,11 @@ is used instead\. All C++ keywords are already in this list\.
Read additional options from \fIfile\fP with each option appearing on a
separate line optionally followed by space and an option value\. Empty lines
and lines starting with \fB#\fP are ignored\. Option values can be enclosed
-in double quotes (\fB""\fP) to preserve leading and trailing whitespaces as
-well as to specify empty values\. If the value itself contains trailing or
-leading double quote, enclose it with an extra pair of double quotes, for
-example \fB""x""\fP\. Non-leading and non-trailing quotes are interpreted as
-being part of the option value\.
+in double (\fB"\fP) or single (\fB'\fP) quotes to preserve leading and
+trailing whitespaces as well as to specify empty values\. If the value
+itself contains trailing or leading double quote, enclose it with an extra
+pair of quotes, for example \fB'"x"'\fP\. Non-leading and non-trailing
+quotes are interpreted as being part of the option value\.
The semantics of providing options in a file is equivalent to providing the
same set of options in the same order on the command line at the point where
diff --git a/doc/cli.xhtml b/doc/cli.xhtml
index 5a136af..e23b55a 100644
--- a/doc/cli.xhtml
+++ b/doc/cli.xhtml
@@ -212,11 +212,12 @@
<dd>Read additional options from <i>file</i> with each option appearing on a
separate line optionally followed by space and an option value. Empty lines
and lines starting with <code><b>#</b></code> are ignored. Option values can
- be enclosed in double quotes (<code><b>""</b></code>) to preserve leading
- and trailing whitespaces as well as to specify empty values. If the value
- itself contains trailing or leading double quote, enclose it with an extra
- pair of double quotes, for example <code><b>""x""</b></code>. Non-leading
- and non-trailing quotes are interpreted as being part of the option value.
+ be enclosed in double (<code><b>"</b></code>) or single
+ (<code><b>'</b></code>) quotes to preserve leading and trailing whitespaces
+ as well as to specify empty values. If the value itself contains trailing or
+ leading double quote, enclose it with an extra pair of quotes, for example
+ <code><b>'"x"'</b></code>. Non-leading and non-trailing quotes are
+ interpreted as being part of the option value.
<p>The semantics of providing options in a file is equivalent to providing
the same set of options in the same order on the command line at the point
diff --git a/doc/guide/index.xhtml b/doc/guide/index.xhtml
index fe094cf..aeb7892 100644
--- a/doc/guide/index.xhtml
+++ b/doc/guide/index.xhtml
@@ -750,12 +750,12 @@ namespace cli
options. Such a file contains a set of options, each appearing on a
separate line optionally followed by space and an option value. Empty lines
and lines starting with <code>#</code> are ignored. Option values can
- be enclosed in double quotes (<code>""</code>) to preserve leading
- and trailing whitespaces as well as to specify empty values. If the
- value itself contains trailing or leading double quote, enclose
- it with an extra pair of double quotes, for example <code>""x""</code>.
- Non-leading and non-trailing quotes are interpreted as being part of
- the option value.</p>
+ be enclosed in double (<code>"</code>) or single (<code>'</code>)
+ quotes to preserve leading and trailing whitespaces as well as to
+ specify empty values. If the value itself contains trailing or leading
+ quote, enclose it with an extra pair of quotes, for example
+ <code>'"x"'</code>. Non-leading and non-trailing quotes are interpreted
+ as being part of the option value.</p>
<p>The semantics of providing options in a file is equivalent to providing
the same set of options in the same order on the command line at the