You could have moved the --output command into the front, before --render – BUT if output is set once, it is valid for all consecutive commands that follow.
So it’s better to create a second section eg: myindex So the tiddlywiki.info would look like this:
you’re telling TW to run the render command and when it’s complete run the output command. This is an elegant mechanism but somewhat different from conventional UNIX-style flags; it can take some getting used to.
Here the output command sets the value to be used by subsequent commands, so when you put it first, the render command will use the value it sets.
BTW, not all combinations will work. I find that I can’t do this:
tiddlywiki . --init server --listen port=7901
I’m pretty sure that’s because while --init server saves the tiddlywiki.info file, the OS probably hasn’t finished saving that before the --listen command starts.