comparison main.c @ 4:54ecfe6a14cf

Use -V as a command line option for showing the version The convention is that the -v command line option controls verbosity, thus use -V instead for showing the version.
author Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
date Thu, 08 Aug 2013 16:16:40 +0200
parents 9a16bf50daba
children
comparison
equal deleted inserted replaced
3:957d697d27d3 4:54ecfe6a14cf
40 GOptionContext *context; 40 GOptionContext *context;
41 GError *error = NULL; 41 GError *error = NULL;
42 const GOptionEntry options[] = { 42 const GOptionEntry options[] = {
43 { "debug", 'd', 0, G_OPTION_ARG_NONE, &debug_mode, 43 { "debug", 'd', 0, G_OPTION_ARG_NONE, &debug_mode,
44 N_("Enable debugging output"), NULL }, 44 N_("Enable debugging output"), NULL },
45 { "version", 'v', 0, G_OPTION_ARG_NONE, &version, 45 { "version", 'V', 0, G_OPTION_ARG_NONE, &version,
46 N_("Print the version number and exit"), NULL }, 46 N_("Print the version number and exit"), NULL },
47 { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, 0 } 47 { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, 0 }
48 }; 48 };
49 49
50 setlocale(LC_ALL, ""); 50 setlocale(LC_ALL, "");