I have a mainly unixoid software that usually writes to a file that is specified as a parameter.
Now I want to add the ability to write to stdout instead. But to write to a file should still be the standard behavior.
I think I saw shell commands like
command --outfile -
Is that a common practise? Unfortunately I do not recall the commands that worked like that.