summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index d8dabee..252023d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -357,6 +357,7 @@ static void usage()
357 printf(" \t\tconnected (must be in udev mode).\n"); 357 printf(" \t\tconnected (must be in udev mode).\n");
358 printf(" -X, --force-exit\tTell a running instance to exit, even if there are still\n"); 358 printf(" -X, --force-exit\tTell a running instance to exit, even if there are still\n");
359 printf(" \tdevices connected (always works).\n"); 359 printf(" \tdevices connected (always works).\n");
360 printf(" -V, --version\t\tPrint version information and exit.\n");
360 printf("\n"); 361 printf("\n");
361} 362}
362 363
@@ -370,6 +371,7 @@ static void parse_opts(int argc, char **argv)
370 {"udev", 0, NULL, 'u'}, 371 {"udev", 0, NULL, 'u'},
371 {"exit", 0, NULL, 'x'}, 372 {"exit", 0, NULL, 'x'},
372 {"force-exit", 0, NULL, 'X'}, 373 {"force-exit", 0, NULL, 'X'},
374 {"version", 0, NULL, 'V'},
373 {NULL, 0, NULL, 0} 375 {NULL, 0, NULL, 0}
374 }; 376 };
375 int c; 377 int c;
@@ -390,6 +392,9 @@ static void parse_opts(int argc, char **argv)
390 case 'v': 392 case 'v':
391 ++verbose; 393 ++verbose;
392 break; 394 break;
395 case 'V':
396 printf("%s\n", PACKAGE_STRING);
397 exit(0);
393 case 'U': 398 case 'U':
394 drop_privileges = 1; 399 drop_privileges = 1;
395 drop_user = optarg; 400 drop_user = optarg;