Implement command-line options

-c, -i and -h.  Wasn't quite sure what to do about -m yet.

Fixes #153.