Refactor to support the new --foo[=bar] and [--foo[=bar]]
use correct synopsis variant for --dbpass