diff options
author | Mike Newman <MikeGTN@src.gnome.org> | 2003-06-03 17:28:20 +0000 |
---|---|---|
committer | Mike Newman <MikeGTN@src.gnome.org> | 2003-06-03 17:28:20 +0000 |
commit | b12b1a4faf7477427a4dcd0b7a8e3245696f1587 (patch) | |
tree | a6e195faf12dcc3f48b6b3c752e0c3e05b013078 /src/gdialog.in | |
parent | 0c1539ced3331ab506c4faec40f2d8eeb299357d (diff) | |
download | zenity-b12b1a4faf7477427a4dcd0b7a8e3245696f1587.tar.gz |
add a --help option to the gdialog wrapper script
Diffstat (limited to 'src/gdialog.in')
-rwxr-xr-x | src/gdialog.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gdialog.in b/src/gdialog.in index 1b6f63c..a27c0e9 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 |