Go to the documentation of this file.
104 #ifdef ENABLE_DOCSERVER
115 "Usage: arts [-bBdghimnrsSvw]\n"
116 " [--basename <name>]\n"
117 " [--describe <method or variable>]\n"
123 " [--includepath <path>]\n"
124 " [--input <variable>]\n"
125 " [--methods all|<variable>]\n"
126 " [--numthreads <#>\n"
128 " [--reporting <xyz>]\n"
129 #ifdef ENABLE_DOCSERVER
130 " [--docserver[=<port>] --baseurl=BASEURL]\n"
131 " [--docdaemon[=<port>] --baseurl=BASEURL]\n"
133 " [--workspacevariables all|<method>]\n"
134 " file1.arts file2.arts ...";
137 "The Atmospheric Radiative Transfer Simulator.\n\n"
138 "-b, --basename Set the basename for the report\n"
139 " file and for other output files.\n"
140 "-d, --describe Print the description String of the given\n"
141 " workspace variable or method.\n"
142 "-g --groups List all workspace variable groups.\n"
144 "-G --gui Start with graphical user interface.\n"
146 "-h, --help Print this message.\n"
147 "-i, --input This is complementary to the --methods switch.\n"
148 " It must be given the name of a variable (or group).\n"
149 " Then it lists all methods that take this variable\n"
150 " (or group) as input.\n"
151 "-I --includepath Search path for include files. Can be given more\n"
152 " than once to add several paths.\n"
153 " Include paths can also be added by setting the\n"
154 " environment variable ARTS_INCLUDE_PATH. Multiple\n"
155 " paths have to be separated by colons.\n"
156 " Paths specified on the commandline have precedence\n"
157 " over the environment variable and will be searched\n"
159 "-m, --methods If this is given the argument `all',\n"
160 " it simply prints a list of all methods.\n"
161 " If it is given the name of a variable\n"
162 " (or variable group), it prints all\n"
163 " methods that produce this\n"
164 " variable (or group) as output.\n"
165 "-n, --numthreads If arts was compiled with OpenMP support this option\n"
166 " can be used to set the maximum number of threads.\n"
167 " By default OpenMP uses all processors/cores.\n"
168 "-p --plain Generate plain help output suitable for\n"
169 " script processing.\n"
170 "-r, --reporting Three digit integer. Sets the reporting\n"
171 " level for agenda calls (first digit),\n"
172 " screen (second digit) and file (third \n"
173 " digit). All reporting levels can reach from 0\n"
174 " (only error messages) to 3 (everything).\n"
175 " The agenda setting applies in addition to both\n"
176 " screen and file output.\n"
178 #ifdef ENABLE_DOCSERVER
179 "-s, --docserver Start documentation server. Optionally, specify\n"
180 " the port number the server should listen on.\n"
181 " Default is 9000.\n"
182 "-S, --docdaemon Start documentation server in the background.\n"
184 "-v, --version Show version information.\n"
185 "-w, --workspacevariables If this is given the argument `all',\n"
186 " it simply prints a list of all variables.\n"
187 " If it is given the name of a method, it\n"
188 " prints all variables needed by this method.";
202 while (NULL != longopts[i].
name )
204 char c = (char)longopts[i].
val;
229 while ( EOF != (optc =
getopt_long (argc, argv, shortopts.c_str(),
230 longopts, (
int *) 0) ) )
264 istringstream iss(
optarg);
266 if ( iss.bad() || !iss.eof() )
268 cerr <<
"Argument to --numthreads (-n) must be an integer!\n";
279 istringstream iss(
optarg);
286 if ( iss.bad() || !iss.eof() )
288 cerr <<
"Argument to --reporting (-r) must be an integer!\n";
297 istringstream iss(
optarg);
299 if ( iss.bad() || !iss.eof() )
301 cerr <<
"Argument to --docserver (-s) must be an integer!\n";
313 istringstream iss(
optarg);
315 if ( iss.bad() || !iss.eof() )
317 cerr <<
"Argument to --docdaemon (-S) must be an integer!\n";
354 char *artspathenv = getenv (
"ARTS_INCLUDE_PATH");
358 String artspath (artspathenv);
369 lastPos = artspath.find_first_not_of(
":", pos);
370 pos = artspath.find_first_of(
":", lastPos);
374 #ifdef ARTS_DEFAULT_INCLUDE_DIR
Index reporting
This should be a two digit integer.
bool help
Only display the help text.
#define optional_argument
Index docserver
Port to use for the docserver.
Structure to hold all command line Parameters.
String usage
Short message how to call the program.
bool version
Display version information.
#define required_argument
bool gui
Flag to run with graphical user interface.
String workspacevariables
If this is given the argument ‘all’, it simply prints a list of all workspace variables.
bool plain
Generate plain help out suitable for script processing.
String describe
Print the description String of the given workspace variable or method.
String helptext
Longer message explaining the options.
The implementation for String, the ARTS string class.
String basename
If this is specified (with the -b –basename option), it is used as the base name for the report file ...
#define ARTS_DEFAULT_INCLUDE_DIR
bool get_parameters(int argc, char **argv)
Get the command line parameters.
ArrayOfString controlfiles
The filenames of the controlfiles.
This file contains header information for the dealing with command line parameters.
bool groups
Print a list of all workspace variable groups.
bool daemon
Flag to run the docserver in the background.
String methods
If this is given the argument ‘all’, it simply prints a list of all methods.
String baseurl
Baseurl for the docserver.
Parameters parameters
Holds the command line parameters.
String input
This is complementary to the methods switch.
Index numthreads
The maximum number of threads to use.
void arts_exit(int status)
This is the exit function of ARTS.
static const Index npos
Define npos:
ArrayOfString includepath
List of paths to search for include files.
Index nelem() const
Number of elements.
The global header file for ARTS.