Follow the CLI refactoring
1. Remove the "checkCommandFlags" helper
2. Unify the web startup message, make them have consistent names as `./gitea help`
3. Fine tune some other messages (see the diff)
showWebStartupMessage("Prepare to run web server")
log.Info("App path: %s",setting.AppPath)
log.Info("Work path: %s",setting.AppWorkPath)
log.Info("Custom path: %s",setting.CustomPath)
log.Info("Config file: %s",setting.CustomConf)
log.Info("Run mode: %s",setting.RunMode)
log.Info("Prepare to run web server")
ifsetting.AppWorkPathMismatch{
ifsetting.AppWorkPathMismatch{
log.Error("WORK_PATH from config %q doesn't match other paths from environment variables or command arguments. "+
log.Error("WORK_PATH from config %q doesn't match other paths from environment variables or command arguments. "+
"Only WORK_PATH in config should be set and used. Please remove the other outdated work paths from environment variables and command arguments",setting.CustomConf)
"Only WORK_PATH in config should be set and used. Please make sure the path in config file is correct, "+
"remove the other outdated work paths from environment variables and command arguments",setting.CustomConf)
log.Error("Unable to prepare saving WORK_PATH=%s to config %q: %v\nYou must set it manually, otherwise there might be bugs when accessing the git repositories.",setting.AppWorkPath,setting.CustomConf,err)
log.Error("Unable to prepare saving WORK_PATH=%s to config %q: %v\nYou should set it manually, otherwise there might be bugs when accessing the git repositories.",setting.AppWorkPath,setting.CustomConf,err)
log.Error("Unable to update WORK_PATH=%s to config %q: %v\nYou must set it manually, otherwise there might be bugs when accessing the git repositories.",setting.AppWorkPath,setting.CustomConf,err)
log.Error("Unable to update WORK_PATH=%s to config %q: %v\nYou should set it manually, otherwise there might be bugs when accessing the git repositories.",setting.AppWorkPath,setting.CustomConf,err)