[command-line] make the block passed to command() be optional.