Status: Accepted
Owner: pekka.klarck
Labels: Type-Enhancement Priority-Low Target-2.7.5
New issue 1239 by pekka.klarck: `Tidy`: Possibility to give output file
http://code.google.com/p/robotframework/issues/detail?id=1239
Tidy tool does not currently accept output file but expects results to be
redirected to files when needed. This is somewhat awkward to use for people
not familiar with redirects, inconsistent with our other tools, and makes
handling non-ASCII characters complicated.
When the output is printed to the console, we should use the correct
console encoding or otherwise users see garbage instead of correct
non-ASCII characters. When the output is redirected to a file, we should
always use UTF-8 or otherwise Robot cannot process those files later.
To simplify things, it is better if we allow an output file to be specified
in addition to the input file. In practice this changes the usage from
python -m robot.tidy input.txt > output.txt
to
python -m robot.tidy input.txt output.txt
Notice that the former still works, but you get invalid output if you use
non-ASCII characters and the console encoding is not UTF-8.
See UserGuide or run e.g. `python -m robot.tidy --help` for more
information about Tidy tool in general.