Added the "select" subcommand.

Fixes #43.