Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


Hi,

The attached patch is for EasyHack 3.7 [1].
Although fixing the -help/-h/-? action in presence of the unix quickstarter,
it does not support --help yet.
I wonder whether soffice should accept the alternative syntax of long prefix
"--" for not only 'help' but also all the rest of options or not?

[1] http://wiki.documentfoundation.org/Development/Easy_Hacks#fix_--help_parameters

Cheers,
-- Takeshi Abe
From 265ae65998207935b8efaf391a7e3355b4263aad Mon Sep 17 00:00:00 2001
From: Takeshi Abe <tabe@fixedpoint.jp>
Date: Fri, 17 Dec 2010 12:37:59 +0900
Subject: [PATCH] EasyHack: soffice accepts -help/-h/-? in presence of the unix quickstart

---
 desktop/scripts/soffice.sh |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/desktop/scripts/soffice.sh b/desktop/scripts/soffice.sh
index b45b6bc..4d3c92c 100644
--- a/desktop/scripts/soffice.sh
+++ b/desktop/scripts/soffice.sh
@@ -97,9 +97,11 @@ done
 
 # test for availability of the fast external splash
 for arg in $@; do
-    if [ "$arg" = "-nologo" -o "$arg" = "-no-oosplash" ]; then
-       no_oosplash=y
-    fi
+    case "$arg" in
+    -nologo|-no-oosplash|-help|-h|-\?)
+        no_oosplash=y
+        ;;
+    esac
 done
 
 # Setup our app as oosplash, but try to avoid executing pagein,
-- 
1.7.2.3


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.