#!/usr/bin/env bash DIR=$HOME/.ani-cli DB='history.sqlite3' log() { printf "%s\n" "$1" } while getopts 'cdrq' OPT; do case "$OPT" in c) log "Creating database..." sqlite3 "$DIR"/"$DB"