Add '--log-message' option and changed implementation of '--debug' option.