1 /***************************************************************************
3 * $Id: main.c 75 2009-07-26 14:45:59Z Michael.McTernan $
5 * This file is part of mscgen, a message sequence chart renderer.
6 * Copyright (C) 2010 Michael C McTernan, Michael.McTernan.2001@cs.bris.ac.uk
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 **************************************************************************/
23 /***************************************************************************
25 ***************************************************************************/
27 #include "mscgen_config.h"
29 #include "mscgen_usage.h"
31 /***************************************************************************
33 ***************************************************************************/
35 /***************************************************************************
37 ***************************************************************************/
39 /***************************************************************************
41 ***************************************************************************/
43 /** Print program usage and return.
48 "Usage: mscgen -T <type> [-o <file>] [-i] <infile>\n"
52 " -T <type> Specifies the output file type, which maybe one of 'png', 'eps',\n"
54 " -i <infile> The file from which to read input. If omitted or specified as\n"
55 " '-', input will be read from stdin. The '-i' flag maybe\n"
56 " omitted if <infile> is specified as the last option on the\n"
58 " -o <file> Write output to the named file. This option must be specified if \n"
59 " input is taken from stdin, otherwise the output filename\n"
60 " defaults to <infile>.<type>. This may also be specified as '-'\n"
61 " to write output directly to stdout.\n"
63 " -F <font> Use specified font for PNG output. This must be a font specifier\n"
64 " compatible with fontconfig (see 'fc-list'), and overrides the\n"
65 " MSCGEN_FONT environment variable if also set.\n"
67 " -p Print parsed msc output (for parser debug).\n"
68 " -l Display program licence and exit.\n"
70 "Mscgen version %s, Copyright (C) 2010 Michael C McTernan,\n"
71 " Michael.McTernan.2001@cs.bris.ac.uk\n"
72 "Mscgen comes with ABSOLUTELY NO WARRANTY. This is free software, and you are\n"
73 "welcome to redistribute it under certain conditions; type `mscgen -l' for\n"
76 "PNG rendering by libgd, www.libgd.org\n"
82 /** Print program licence and return.
87 "Mscgen, a message sequence chart renderer.\n"
88 "Copyright (C) 2010 Michael C McTernan, Michael.McTernan.2001@cs.bris.ac.uk\n"
90 "TTPCom Ltd., hereby disclaims all copyright interest in the program `mscgen'\n"
91 "(which renders message sequence charts) written by Michael McTernan.\n"
93 "Rob Meades of TTPCom Ltd, 1 August 2005\n"
94 "Rob Meades, director of Software\n"
96 "This program is free software; you can redistribute it and/or modify\n"
97 "it under the terms of the GNU General Public License as published by\n"
98 "the Free Software Foundation; either version 2 of the License, or\n"
99 "(at your option) any later version.\n"
101 "This program is distributed in the hope that it will be useful,\n"
102 "but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
103 "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
104 "GNU General Public License for more details.\n"
106 "You should have received a copy of the GNU General Public License\n"
107 "along with this program; if not, write to the Free Software\n"
108 "Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA\n");