toh: Parse -d and -q command line options

This adds the ability to set the number of disks by passing the -d flag
at execution, and adds an option to run quietly.