Merge "Fix another bug in selection subexpression handling."
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_options.c
1 /*
2  *
3  *                This source code is part of
4  *
5  *                 G   R   O   M   A   C   S
6  *
7  *          GROningen MAchine for Chemical Simulations
8  *
9  *                        VERSION 3.3.99_development_20071104
10  * Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
11  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
12  * Copyright (c) 2001-2006, The GROMACS development team,
13  * check out http://www.gromacs.org for more information.
14
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License
17  * as published by the Free Software Foundation; either version 2
18  * of the License, or (at your option) any later version.
19  *
20  * If you want to redistribute modifications, please consider that
21  * scientific software is very special. Version control is crucial -
22  * bugs must be traceable. We will be happy to consider code for
23  * inclusion in the official distribution, but derived work must not
24  * be called official GROMACS. Details are found in the README & COPYING
25  * files - if they are missing, get the official version at www.gromacs.org.
26  *
27  * To help us fund GROMACS development, we humbly ask that you cite
28  * the papers on the package - you can find them in the top README file.
29  *
30  * For more info, check our website at http://www.gromacs.org
31  *
32  * And Hey:
33  * Groningen Machine for Chemical Simulation
34  */
35 #ifdef HAVE_CONFIG_H
36 #include <config.h>
37 #endif
38
39 #include "typedefs.h"
40 #include "macros.h"
41 #include "statutil.h"
42 #include "copyrite.h"
43
44 /*
45  * This program is needed to create the files:
46  *   options.html
47  *   options.tex
48  * for the html and latex manuals.
49  * It should be ran with the option: -hidden
50  */
51
52 int
53 gmx_options(int argc, char *argv[])
54 {
55     const char  *desc[] = {
56         "GROMACS programs have some standard options,",
57         "of which some are hidden by default:"
58     };
59
60     const char  *bugs[] = {
61         "If the configuration script found Motif or Lesstif on your system, "
62         "you can use the graphical interface (if not, you will get an error):[BR]"
63         "[TT]-X[tt] gmx_bool [TT]no[tt] Use dialog box GUI to edit command line options",
64
65         "When compiled on an SGI-IRIX system, all GROMACS programs have an "
66         "additional option:[BR]"
67         "[TT]-npri[tt] int [TT]0[tt] Set non blocking priority (try 128)",
68
69         "Optional files are not used unless the option is set, in contrast to "
70         "non-optional files, where the default file name is used when the "
71         "option is not set.",
72
73         "All GROMACS programs will accept file options without a file extension "
74         "or filename being specified. In such cases the default filenames will "
75         "be used. With multiple input file types, such as generic structure "
76         "format, the directory will be searched for files of each type with the "
77         "supplied or default name. When no such file is found, or with output "
78         "files the first file type will be used.",
79
80         "All GROMACS programs with the exception of [TT]mdrun[tt] "
81         "and [TT]eneconv[tt] check if the command line options "
82         "are valid.  If this is not the case, the program will be halted.",
83
84         "Enumerated options (enum) should be used with one of the arguments "
85         "listed in the option description, the argument may be abbreviated. "
86         "The first match to the shortest argument in the list will be selected.",
87
88         "Vector options can be used with 1 or 3 parameters. When only one "
89         "parameter is supplied the two others are also set to this value.",
90
91         "All GROMACS programs can read compressed or g-zipped files. There "
92         "might be a problem with reading compressed [TT].xtc[tt], "
93         "[TT].trr[tt] and [TT].trj[tt] files, but these will not compress "
94         "very well anyway.",
95
96         "Most GROMACS programs can process a trajectory with fewer atoms than "
97         "the run input or structure file, but only if the trajectory consists "
98         "of the first n atoms of the run input or structure file.",
99
100         "Many GROMACS programs will accept the [TT]-tu[tt] option to set the "
101         "time units to use in output files (e.g. for [TT]xmgr[tt] graphs or "
102         "[TT]xpm[tt] matrices) and in all time options."
103     };
104
105     output_env_t oenv = NULL;
106     parse_common_args(&argc, argv, 0,
107                       0, NULL, 0, NULL, asize(desc), desc, asize(bugs), bugs, &oenv);
108
109     thanx(stderr);
110
111     return 0;
112 }