edcfg is a command-line utility program for creating, editing, merging, and viewing LayGO configuration (.cfg) files. Configuration files can be used to set the configuration of system components, the default configuration of protocol services, and to modify the configuration of a particular instance of a service after opening it.
For more information about how to use configurations, see lgo_ConfigureStack(), lgo_LoadConfiguration(), lgo_GetConfiguration() and lgo_SetConfiguration() in the LayGO API Manual.
edcfg is invoked at the command prompt in 1 of 4 modes:
> edcfg <mode> <arguments>
Mode/Arguments | Description |
---|---|
-c [file name] | Create a new configuration file. If no file name is given, it defaults to default.cfg. |
-e [file name] [new file name] | Edit an existing configuration file. If no file name is given, it defaults to default.cfg. Output can be to the same or a new file. If a new file name is not given, the edited file overwrites the input file. |
-m <merge file> <file> [<file>...] | Merge existing configuration files into one. If two or more files contain configurations for the same layer, the configuration from the file listed later on the command-line overrides the previous configuration. |
[-v] <file name> | View an existing configuration file. This is the default mode if no switch is given. |