Command-line arguments


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.


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 222 of file cmdarg.c.

References class_get_class_from_classname(), class_get_first_class(), class_get_property_typename(), FMT_INT64, global_command_line, global_find(), global_getnext(), global_getvar(), global_setvar(), legal_license(), legal_notice(), loadall(), module_load(), output_both_stdout(), output_debug(), output_error(), output_fatal(), output_message(), output_test(), output_warning(), output_xsd(), PF_DEPRECATED, PT_enumeration, PT_set, random_test(), throw_exception(), timestamp_test(), and unit_test().

Referenced by main().


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