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
echo "$(tmuxifier-help completions)" >&2
echo "$(tmuxifier-help completions $@)" >&2
exit 1
fi

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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