atar-axis/xpadneo

View on GitHub
lib/verbose.sh

Summary

Maintainability
Test Coverage
#!/bin/bash

case "$1" in
    --verbose)
        echo "* verbose mode enabled"
        # shellcheck disable=SC2034
        V=("$1")
        set -x
        ;;
    "")
        ;;
    *)
        echo "usage: $0 [--verbose]"
        exit 1
esac