Command-line arguments
[GridLAB-D Core]


Detailed Description

The command-line argument processing module processes arguments as they are encountered.

The following command-line toggles are supported

The following command-line processes can be called

The following system options may be changed

The following are only supported on Linux systems


Functions

STATUS cmdarg_load (int argc, char *argv[])
 Load and process the command-line arguments.
STATUS load_module_list (FILE *fd, int *test_mod_num)


Function Documentation

STATUS cmdarg_load ( int  argc,
char *  argv[] 
)

Load and process the command-line arguments.

Returns:
a STATUS value
Arguments are processed immediately as they are seen. This means that models are loaded when they are encountered, and in relation to the other flags. Thus
    gridlabd --warn model1 --warn model2
will load model1 with warnings on, and model2 with warnings off.
Parameters:
argc  the number of arguments in argv
argv  a list pointers to the argument string

Definition at line 87 of file cmdarg.c.

References FAILED, global_command_line, global_dump(), global_setvar(), legal_license(), legal_notice(), load_module_list(), loadall(), module_cmdargs(), module_libinfo(), output_error(), output_fatal(), output_redirect(), output_warning(), output_xsd(), random_test(), SUCCESS, timestamp_test(), TRUE, and unit_test().

Referenced by main().


GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy