shell Usage

 

Usage(){
    cat <<EOF

Usage:
    $0 [tenant]
    
    $0         (Run database table check_table_data_config all tenants)
    $0 DB_NAME (Run database table check_table_data_config of db_name,if not exists,it will not run)
    $0 -h      (Display this document)

EOF
    exit 1
}

# 显示帮助 [
"$1" = "-h" ] && Usage echo "not end"

 

posted @ 2019-07-17 09:06  chenzechao  阅读(4611)  评论(0编辑  收藏  举报