guess release for all cmds, share help text between cmds
The release-guessing code added for nightly by the last commit
is really useful for all commands, so split it into a function
and have all commands use it. Also, share help text between
commands when appropriate.