Changed --quiet arg to not require a subsequent number.
Unified main's two similar cases into one. Should retain same functionality.