Convert boolean test to `getopts` test.

See #100.