129 | | The composer has many options, and invocations that use only options can be long. To simplify matters, a simple key/value configuration file can be used. The |
130 | | |
| 131 | The composer has many options, and invocations that use only options can be long. To simplify matters, a simple key/value configuration file can be used. Each line in the configuration file corresponds to a command line parameter. Options that take a value are separated from that option by an equals sign (=), and the '''--multifile''' option can be abbreviated as '''file'''. The following command line |
| 132 | |
| 133 | {{{ |
| 134 | compose.py --output_testbeds --url=http://users.isi.deterlab.net:23235 --multifile=usa_trio.tcl,3 --multifile=etrio.tcl,2 --multifile=bot.tcl,7 --multifile=atrio.tcl,1 --format=ns us_hex.tcl attack.tcl defend.tcl irc.tcl --output=topo.tcl |
| 135 | }}} |
| 136 | |
| 137 | can be replaced with |
| 138 | |
| 139 | {{{ |
| 140 | compose.py --config=./compose.config |
| 141 | }}} |
| 142 | |
| 143 | if {{{compose.config}}} contains the following: |
| 144 | |
| 145 | {{{ |
| 146 | url=http://users.isi.deterlab.net:23235 |
| 147 | output_testbeds |
| 148 | file=usa_trio.tcl,3 |
| 149 | file=etrio.tcl,2 |
| 150 | file=bot.tcl,7 |
| 151 | file=atrio.tcl,1 |
| 152 | us_hex.tcl |
| 153 | attack.tcl |
| 154 | defend.tcl |
| 155 | irc.tcl |
| 156 | output=topo.tcl |
| 157 | }}} |
| 158 | |
| 159 | Note that input files included once can be directly named in the configuration file. |