summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Newman <MikeGTN@src.gnome.org>2003-06-03 17:28:20 +0000
committerMike Newman <MikeGTN@src.gnome.org>2003-06-03 17:28:20 +0000
commitb12b1a4faf7477427a4dcd0b7a8e3245696f1587 (patch)
treea6e195faf12dcc3f48b6b3c752e0c3e05b013078
parentAdded "ko" to ALL_LINGUAS. (diff)
downloadzenity-b12b1a4faf7477427a4dcd0b7a8e3245696f1587.tar.gz
zenity-b12b1a4faf7477427a4dcd0b7a8e3245696f1587.tar.bz2
zenity-b12b1a4faf7477427a4dcd0b7a8e3245696f1587.zip
add a --help option to the gdialog wrapper script
-rw-r--r--ChangeLog4
-rwxr-xr-xsrc/gdialog.in10
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3aa54fe0..ec2a80dd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-06-03 Mike Newman <mikegtn@gnome.org>
+
+ * src/gdialog.in: add a --help option, pointing to zenity docs.
+
2003-06-03 Changwoo Ryu <cwryu@debian.org>
* configure.in: Added "ko" to ALL_LINGUAS.
diff --git a/src/gdialog.in b/src/gdialog.in
index 1b6f63c3..a27c0e9a 100755
--- a/src/gdialog.in
+++ b/src/gdialog.in
@@ -32,6 +32,16 @@ ARG: while ($argn < $args) {
get_arg;
+# Informational stuff
+
+ if ($element eq "--help" || $element eq "--about") {
+ print ( "gdialog is a compatibility wrapper around zenity, " .
+ "provided to hopefully\nallow older scripts to run. " .
+ "If you are reading this message, you should\n" .
+ "probably be using zenity directly\n\n" .
+ "type: 'zenity --help' or 'man zenity' for more information\n");
+ exit (1);
+ }
# Section 1 : Args which gdialog expects BEFORE box options
# --clear, --backtitle have no obvious effect - ignored
bgstack15