8e82ff2
diff --git a/desktop/scripts/soffice.sh.in b/desktop/scripts/soffice.sh.in
24b3f07
index 4d14051..2d42613 100755
8e82ff2
--- a/desktop/scripts/soffice.sh.in
8e82ff2
+++ b/desktop/scripts/soffice.sh.in
24b3f07
@@ -158,8 +158,8 @@ if [ -n "$VALGRINDCHECK" -a -z "$VALGRIND" ] ; then
24b3f07
 fi
24b3f07
 
24b3f07
 # do not pass the request for command line help to oosplash
24b3f07
-if test "$#" -eq 1; then
24b3f07
-    case "$1" in
24b3f07
+for arg in $@ ; do
24b3f07
+    case "$arg" in
24b3f07
         -h | --h | --he | --hel | --help)
24b3f07
             "$sd_prog/soffice.bin" --help
24b3f07
             exit 0
24b3f07
@@ -171,7 +171,7 @@ if test "$#" -eq 1; then
24b3f07
         *)
24b3f07
             ;;
24b3f07
     esac
24b3f07
-fi
24b3f07
+done
24b3f07
 
24b3f07
 # oosplash does the rest: forcing pages in, javaldx etc. are
24b3f07
 exec $VALGRINDCHECK $STRACECHECK "$sd_prog/oosplash" "$@"