diff options
author | Jannis Pohlmann <jannis@xfce.org> | 2010-07-21 14:33:04 +0200 |
---|---|---|
committer | Jannis Pohlmann <jannis@xfce.org> | 2010-07-25 19:42:29 +0200 |
commit | 693abb789907d8548ce22bbc8629e3ece1cd8f39 (patch) | |
tree | 73c6a1750da629320dba6456e616180897d83eb3 /thunar-volman | |
parent | 3407dce340a7860de244ce2c1957f346482a1b80 (diff) | |
download | thunar-volman-693abb789907d8548ce22bbc8629e3ece1cd8f39.tar.gz |
Fix command line option handling (add code for --version).
Diffstat (limited to 'thunar-volman')
-rw-r--r-- | thunar-volman/main.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/thunar-volman/main.c b/thunar-volman/main.c index 96f16dd..2943c88 100644 --- a/thunar-volman/main.c +++ b/thunar-volman/main.c @@ -105,6 +105,19 @@ main (int argc, return EXIT_FAILURE; } + /* check if we should print version information */ + if (opt_version) + { + g_print ("%s %s (Xfce %s)\n\n", PACKAGE_NAME, PACKAGE_VERSION, + xfce_version_string ()); + g_print ("%s\n", "Copyright (c) 2004-2007 Benedikt Meurer <benny@xfce.org>"); + g_print ("%s\n", "Copyright (c) 2010 Jannis Pohlmann <jannis@xfce.org>"); + g_print ("\n%s\n\n", _("All rights reserved.")); + g_print (_("Please report bugs to <%s>."), PACKAGE_BUGREPORT); + g_print ("\n"); + return EXIT_SUCCESS; + } + /* initialize xfconf */ if (!xfconf_init (&error)) { @@ -114,7 +127,7 @@ main (int argc, } /* check if we should print the version information */ - if (opt_version) + if (opt_configure) { /* the --configure/-c option of thunar-volman exists for backwards-compatibility * reasons only. what we really do here is spawning thunar-volman-settings */ |