summaryrefslogtreecommitdiffstats
path: root/src/cmd.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-11 18:15:41 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-11 18:15:41 (EDT)
commitf79dea0f5e1b89488d73bfb0360e651b8d578e15 (patch)
tree682bacab015acd1175f57b7bcbc8b65e4cb02ba5 /src/cmd.sh
parentd19eb991c6cf206dba7a9ecc0732c4ab5e7b4f85 (diff)
Consistently shift function arguments
Diffstat (limited to 'src/cmd.sh')
-rw-r--r--src/cmd.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd.sh b/src/cmd.sh
index 2f13fb7..e7af8e3 100644
--- a/src/cmd.sh
+++ b/src/cmd.sh
@@ -89,6 +89,7 @@ print_cmd_summaries()
print_cmd_usage()
{
local cmd="${1}"
+ shift 1
local cmd_clean=
local usage=
@@ -103,6 +104,7 @@ print_cmd_usage()
is_cmd()
{
local cmd="${1}"
+ shift 1
case "${cmds}" in *" ${cmd} "*) return 0;; esac
return 1
@@ -111,8 +113,8 @@ is_cmd()
run_cmd()
{
local cmd="${1}"
+ shift 1
local cmd_clean=
- shift
cmd_clean="$(printf '%s' "${cmd}" | \
tr '[A-Z]' '[a-z]' | tr -C '[a-z0-9_]' '_')"