aboutsummaryrefslogtreecommitdiffstats
path: root/info
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-10-24 15:04:32 +0200
committerMattias Andrée <maandree@operamail.com>2013-10-24 15:04:32 +0200
commite6844d92e61188c608d054a511aa2f0f1d5a23a7 (patch)
tree58f45f8c444863425dd76d15cf5239d8aafe3390 /info
parentmove most of overview into new chapter syntax (diff)
downloadgpp-e6844d92e61188c608d054a511aa2f0f1d5a23a7.tar.gz
gpp-e6844d92e61188c608d054a511aa2f0f1d5a23a7.tar.bz2
gpp-e6844d92e61188c608d054a511aa2f0f1d5a23a7.tar.xz
info manual: invoking
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'info')
-rw-r--r--info/gpp.texinfo58
1 files changed, 57 insertions, 1 deletions
diff --git a/info/gpp.texinfo b/info/gpp.texinfo
index 77e9edc..20049f4 100644
--- a/info/gpp.texinfo
+++ b/info/gpp.texinfo
@@ -93,7 +93,63 @@ lines.
@node Invoking
@chapter Invoking
-FIXME
+Syntax for invoking @command{gpp}:
+@command{gpp [options...]}
+
+Short options must not be joined and
+the value for a flag must be in a
+separate argument from the flag itself.
+
+For example, @option{--symbol=X} is not allowed,
+but @option{--symbol X} is.
+
+@table @option
+@item -s
+@itemx --symbol
+Set the prefix symbol for preprocessor directives. (Default: @@)
+
+@item -e
+@itemx --encoding
+Set the encoding of file. (Default: UTF-8)
+
+@item -n
+@itemx --iterations
+Number of iterations to run the preprocessing in. (Default: 1)
+
+@item -u
+@itemx --unshebang
+Bland out the shebang line. Notice that the line is not removed,
+it is just cleared. You can use a shebang line make gpp preprocess
+the file when executed.
+
+@item -i
+@itemx --input
+Set the input file. (Default: /dev/stdin)
+
+@item -o
+@itemx --output
+Set the output file. (Default: /dev/stdout)
+
+@item -f
+@itemx --file
+Set both input file and output file.
+
+@item -D
+@itemx --export
+Declare a environment variable. The syntax
+@code{NAME=VALUE} is used for the argument,
+but if the argument does not include an
+equals sign the value 1 will be used.
+
+@item -v
+@itemx --version
+Print program name and version and exit.
+
+@item -c
+@itemx --copying
+Print copyright notice and exit.
+
+@end table