usage() {
cat >&2 <<EOF
-Usage: $0 [-c] <parameters file>
+Usage: $0 [OPTION] <parameters file>
Options:
-h print this help
-n dry-run mode (for debugging)
log "Running: $0 $@"
log "Hostname: $(hostname -f)"
-declare -a TOPOLOGIES ALGORITHMS PLATFORMS COMMON_OPTS
+declare -a TOPOLOGIES ALGORITHMS PLATFORMS COMMON_OPTS MORE_ARGS
# read parameters
log "Reading parameters from \"$1\"."
COMMON_OPTS=(
--cfg=contexts/factory:raw
+ "${MORE_ARGS[@]}"
)
log "Results put in: \"$RESULTS\"."
log "skipped (dry-run)"
else
echo "# ${cmd[@]}" > "$out"
- "${cmd[@]}" > "$out" 2>&1
+ "${cmd[@]}" >> "$out" 2>&1
tail -n4 "$out"
fi
done