diff --git a/build b/build index d4465d1..0abff4f 100755 --- a/build +++ b/build @@ -23,7 +23,7 @@ linkname="${linkpath##*/}" main() { x_ id -u 1>/dev/null 2>/dev/null - [ $# -lt 1 ] && $err "Too few arguments. Try: ${0} help" + [ $# -lt 1 ] && $err "Check $projectname documentation for help." [ "$1" = "dependencies" ] && x_ install_packages $@ && cbmk_exit 0 @@ -45,8 +45,6 @@ initcmd() [ "$(id -u)" != "0" ] || $err "this command as root is not permitted" case "${1}" in - help) usage ${0} ;; - list) items "script" ;; version) printf "%s\n" "$relname" ;; release) shift 1; mkrelease $@ ;; *) @@ -93,33 +91,10 @@ git_init() excmd() { - [ -f "${script_path}" ] || $err "Bad command. Run: ${linkpath} help" + [ -f "${script_path}" ] || $err "Bad command. Check $projectname docs." shift 1; "$script_path" $@ || $err "excmd: ${script_path} ${@}" } -usage() -{ - progname=${0} - cat <<- EOF - $relname - - USAGE: ${progname}