From b8cec4a2571596692c1e0b27cc3953ecff712178 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 Jun 2010 09:25:29 +0200 Subject: Add support for single quotes in option files --- doc/cli.1 | 10 +++++----- doc/cli.xhtml | 11 ++++++----- doc/guide/index.xhtml | 12 ++++++------ 3 files changed, 17 insertions(+), 16 deletions(-) (limited to 'doc') 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 @@
Read additional options from file with each option appearing on a separate line optionally followed by space and an option value. Empty lines and lines starting with # are ignored. Option values can - be enclosed in double 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 double quotes, for example ""x"". Non-leading - and non-trailing quotes are interpreted as being part of the option value. + be enclosed in double (") or single + (') 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 + '"x"'. 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 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 # are ignored. Option values can - be enclosed in double 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 double quotes, for example ""x"". - Non-leading and non-trailing quotes are interpreted as being part of - the option value.

+ be enclosed in double (") or single (') + 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 + '"x"'. 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 -- cgit v1.1