Alter how internal help invocation work to make life a bit easier

This commit is contained in:
2013-06-03 09:46:03 +03:00
parent adcea18bdc
commit df5e6031cd
8 changed files with 8 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ has-completions() {
} }
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "$(tmuxifier-help completions)" >&2 echo "$(tmuxifier-help completions $@)" >&2
exit 1 exit 1
fi fi

View File

@@ -22,7 +22,7 @@ if calling-complete "$@"; then
fi fi
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "$(tmuxifier-help edit-session)" >&2 echo "$(tmuxifier-help edit-session $@)" >&2
exit 1 exit 1
fi fi

View File

@@ -22,7 +22,7 @@ if calling-complete "$@"; then
fi fi
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "$(tmuxifier-help edit-window)" >&2 echo "$(tmuxifier-help edit-window $@)" >&2
exit 1 exit 1
fi fi

View File

@@ -53,7 +53,7 @@ fi
if has-help "$command_path"; then if has-help "$command_path"; then
shift shift
exec "$command_path" --help "$@" exec "$command_path" "$@" --help
else else
command="$(basename "$command_path")" command="$(basename "$command_path")"
command="${command/tmuxifier\-/}" command="${command/tmuxifier\-/}"

View File

@@ -23,7 +23,7 @@ if calling-complete "$@"; then
fi fi
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "$(tmuxifier-help load-session)" >&2 echo "$(tmuxifier-help load-session $@)" >&2
exit 1 exit 1
fi fi

View File

@@ -22,7 +22,7 @@ if calling-complete "$@"; then
fi fi
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "$(tmuxifier-help load-window)" >&2 echo "$(tmuxifier-help load-window $@)" >&2
exit 1 exit 1
fi fi

View File

@@ -22,7 +22,7 @@ if calling-complete "$@"; then
fi fi
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "$(tmuxifier-help new-session)" >&2 echo "$(tmuxifier-help new-session $@)" >&2
exit 1 exit 1
fi fi

View File

@@ -22,7 +22,7 @@ if calling-complete "$@"; then
fi fi
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "$(tmuxifier-help new-window)" >&2 echo "$(tmuxifier-help new-window $@)" >&2
exit 1 exit 1
fi fi