notsorandomname | 9 years ago | on: Exploring CLI Best Practices
Though, you still should provide a way to read from file/write into file. I prefer passing "-" or /dev/stdin (/dev/stdout) for that purpose.
Just for the sake of debuggability, if someone would like to debug your script with a debugger/debug prints/debug reads