Std.shlib

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

Common bash functionality, such as fail and debug, and the logic to parse the corresponding command line switches.

GitHub


https://github.com/NovaOrdis/std.shlib

Version

std_shlib_version=1

Each change must be followed by a version increment.

Integration

f=$(dirname $0)/std.shib; [ -f ${f} ] && . ${f} || { echo "${f} not found" 1>&2; exit 1; }

function main() {

    process-common-arguments $@

    for i in ${args}; do
        # process remaining parameters as ${i}
    done
}

main $@