Implement --file option.

Resolves #1.