static int local_mode=FALSE;
static int no_redirect=FALSE;
static int verbose=FALSE;
+static int version=FALSE;
struct poptOption options[] = {
{
N_("Run in verbose (debug) mode"),
NULL
},
+ {
+ "version",
+ '\0',
+ POPT_ARG_NONE,
+ &version,
+ 0,
+ N_("Print version number"),
+ NULL
+ },
POPT_AUTOHELP
{
NULL,
exit(1);
}
+ if (version) {
+ printf("%s\n", PACKAGE_VERSION);
+ exit(0);
+ }
+
bind_textdomain_codeset(PACKAGE_TARNAME, "UTF8");
setenv("CHARSET","UTF-8",1);