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