ARTS  2.4.0(git:4fb77825)
parameters.h File Reference

This file contains header information for the dealing with command line parameters. More...

#include "array.h"
#include "mystring.h"

Go to the source code of this file.

Classes

class  Parameters
 Structure to hold all command line Parameters. More...
 

Functions

bool get_parameters (int argc, char **argv)
 Get the command line parameters. More...
 

Detailed Description

This file contains header information for the dealing with command line parameters.

Author
Stefan Buehler
Date
2001-07-24

Definition in file parameters.h.

Function Documentation

◆ get_parameters()

bool get_parameters ( int  argc,
char **  argv 
)

Get the command line parameters.

They are stored in the global variable parameters which is a structure of type Parameters. If needed, this variable should be declared like this:

extern const Parameters parameters

Returns
false=ok, true=error
Parameters
argcNumber of command line parameters
argvValues of command line parameters
Author
Stefan Buehler
Version
1

Definition at line 71 of file parameters.cc.

References Parameters::helptext, option::name, no_argument, optional_argument, parameters, required_argument, and Parameters::usage.

Referenced by main().