Default argument file
GGC tools can load command options from a default argument file named in a specific way in default locations.
Syntax
[.]tool.command
- The filename syntax option with a dot (
.) prefix is used to indicate a hidden file. - Using a dot (
.) prefix references a hidden file. - tool is the name of the GGC tool. For example, ggcadmin, or ggcgen. For BDL scenario, the tool is "
bdl". - command is the name of the tool command. For example, startbdlserver.
Usage
ggcadmin, ggcgen, and BDL scenario tools accept arguments from a file. This allows you to save options to a file that tend to be long and that otherwise you would type over and over again.
For example, you can save the options to start the bdl server in a file named ggcadmin.startbdlserver in your user home path .ggc directory.
--idle-delay=2000
--port=9000
It uses the first file it finds.
| Command type | Filename | Example |
|---|---|---|
| ggcadmin command | ggcadmin.command |
.ggcadmin.startbdlserver ggcadmin.startbdlserver |
BDL scenarios (for example, fglrun
scenario.42m tcp) |
bdl.command |
.bdl.tcp bdl.tcp |
| ggcgen command | ggcgen.command |
.ggcgen.bdl ggcgen.bdl |
bdl tcp or ua
For BDL scenarios run with tcp type command (for example,
fglrun scenario.42m tcp), the
ggc will look for the argument file in one of these formats:
.bdl.tcp
bdl.tcp
ua type command (for example,
fglrun scenario.42m ua --url), the
ggc expects the argument file in one of these formats:
.bdl.ua
bdl.uaShow the expanded command line
--dump-command option.
ggcadmin startbdlserver --dump-commandThe output is
shown:ggcadmin startbdlserver [--idle-delay=2000] [--port=9000]