Add --output-dir cli option.

I've had this commit sitting around for a while.

Like #1977, what I'd actually like is a way to tell the CLI to use my regular GUI settings. (which this commit doesn't do.)