From c9c3534f05b3741ef7ad452389f020a2039005c0 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 12 Jun 2013 00:08:44 +0100 Subject: [PATCH] Improve init command's argument parsing --- libexec/tmuxifier-init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/tmuxifier-init b/libexec/tmuxifier-init index 5f30ed7..4e826f3 100755 --- a/libexec/tmuxifier-init +++ b/libexec/tmuxifier-init @@ -2,9 +2,9 @@ set -e [ -n "$TMUXIFIER_DEBUG" ] && set -x -# Set shell to first argument that is not "-" or "--help". +# Set shell to first argument that is not "-", "-h" or "--help". for arg in "$@"; do - if [ "$arg" != "-" ] && [ "$arg" != "--help" ]; then + if [ "$arg" != "-" ] &&[ "$arg" != "-h" ] && [ "$arg" != "--help" ]; then shell="$arg" fi done