/***************************************************************************
help.cpp - description
-------------------
begin : Die Apr 23 2002
copyright : (C) 2002-2007 by Andre Simon
email : andre.simon1@gmx.de
***************************************************************************/
/*
This file is part of Highlight.
Highlight is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Highlight is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Highlight. If not, see .
*/
#include
#include "help.h"
using namespace std;
namespace Help
{
void printHelp()
{
cout<<"USAGE: highlight [OPTIONS]... [FILES]...\n";
cout<<"\n";
cout<<"General options:\n";
cout<<"\n";
cout<<" -B, --batch-recursive= convert all matching files, searches subdirs\n";
cout<<" (Example: -B '*.cpp')\n";
cout<<" -D, --data-dir= set path to data directory\n";
cout<<" -E, --add-data-dir= set path to an additional data directory, which\n";
cout<<" is searched first\n";
cout<<" --add-config-dir= set path to an additional config directory\n";
cout<<" -h, --help print this help\n";
cout<<" -i, --input= name of single input file\n";
cout<<" -o, --output= name of single output file\n";
cout<<" -O, --outdir= name of output directory\n";
cout<<" -p, --list-langs list installed language definitions\n";
cout<<" -P, --progress print progress bar in batch mode\n";
cout<<" -q, --quiet supress progress info in batch mode\n";
cout<<" -S, --syntax= specify type of source code\n";
cout<<" -v, --verbose print debug info\n";
cout<<" -w, --list-themes list installed colour themes\n";
cout<<" --force generate output if language type is unknown\n";
cout<<" --print-config print path configuration\n";
cout<<" --print-style print only style (see --style-outfile)\n";
cout<<" --skip= ignore listed unknown file types\n";
cout<<" (Example: --skip='bak;c~;h~')\n";
cout<<" --start-nested= define nested language which starts input\n";
cout<<" without opening delimiter\n";
cout<<" --validate-input test if input is a valid text file\n";
cout<<" --version print version and copyright information\n";
cout<<"\n";
cout<<"\n";
cout<<"Output formats:\n";
cout<<"\n";
cout<<" -H, --html generate HTML (default)\n";
cout<<" -A, --ansi generate terminal output (16 colours)\n";
cout<<" -L, --latex generate LaTeX\n";
cout<<" -M, --xterm256 generate terminal output (256 colours)\n";
cout<<" -R, --rtf generate RTF\n";
cout<<" -T, --tex generate TeX\n";
cout<<" -X, --xhtml generate XHTML 1.1\n";
cout<<" -Z, --xml generate XML\n";
cout<<" -G, --svg generate SVG (experimental)\n";
cout<<" -Y, --bbcode generate BBCode (experimental)\n";
cout<<" --out-format= output file in given format\n";
cout<<" : see long options above\n";
cout<<"\n";
cout<<"\n";
cout<<"Output formatting options:\n";
cout<<"\n";
cout<<" -c, --style-outfile= name of style file or output to stdout, if\n";
cout<<" 'stdout' is given as file argument\n";
cout<<" -d, --doc-title= document title\n";
cout<<" -e, --style-infile= file to be included in style-outfile\n";
cout<<" -I, --include-style include style definition\n";
cout<<" -f, --fragment omit file header and footer\n";
cout<<" -F, --reformat=