From 2fea9a37952af6c9fd6e0c5508e773990ecdb982 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Tue, 17 Sep 2024 19:43:57 +0100 Subject: [PATCH] Update build usage and error message --- build/build.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/build.plugin.zsh b/build/build.plugin.zsh index da07bac..35d5715 100644 --- a/build/build.plugin.zsh +++ b/build/build.plugin.zsh @@ -29,7 +29,7 @@ fi # Interactively choose a `~build` directory for `build` to build. build-dir() { - local usage='usage: build-dir [-h] [--build] []' + local usage='usage: build-dir [-h] [-s] [--build] []' local -a help show do_build zparseopts -D h=help -help=help s=show -show=show -build=do_build if [[ -n $help ]]; then @@ -62,7 +62,7 @@ EOF local local_build_dir if [[ ${#*} -gt 1 ]]; then echo $usage - error "unexpected position arguments: ${*[2,${#*}]}"; return 1 + error "unexpected positional arguments: ${*[2,${#*}]}"; return 1 elif [[ ${#*} -eq 1 ]]; then if [[ ! -d ${*[1]} ]]; then warning "directory not found: ${*[1]}"