Cli init

Avoid multi-line ?: (the ternary operator); use `if`/`unless` instead.