summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-03-27 10:22:46 +0100
committerGravatar Martin Szulecki2014-03-27 10:22:46 +0100
commit249ab2aee2c9692895d0adb676e22c592ea457a2 (patch)
tree5347ccec8b6319b818162cf8855ce4027b636888
parent8ba560fdd177f107c5a0cf667d4e4ab3b0c59f4a (diff)
downloadusbmuxd-249ab2aee2c9692895d0adb676e22c592ea457a2.tar.gz
usbmuxd-249ab2aee2c9692895d0adb676e22c592ea457a2.tar.bz2
Update command usage output to match best practice and other tools
-rw-r--r--src/main.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/main.c b/src/main.c
index b565d94..d8dabee 100644
--- a/src/main.c
+++ b/src/main.c
@@ -346,16 +346,17 @@ static int notify_parent(int status)
346 346
347static void usage() 347static void usage()
348{ 348{
349 printf("usage: usbmuxd [options]\n"); 349 printf("Usage: %s [OPTIONS]\n", PACKAGE_NAME);
350 printf("\t-h|--help Print this message.\n"); 350 printf("Expose a socket to multiplex connections from and to iOS devices.\n\n");
351 printf("\t-v|--verbose Be verbose (use twice or more to increase).\n"); 351 printf(" -h, --help\t\tPrint this message.\n");
352 printf("\t-f|--foreground Do not daemonize (implies one -v).\n"); 352 printf(" -v, --verbose\t\tBe verbose (use twice or more to increase).\n");
353 printf("\t-U|--user USER Change to this user after startup (needs usb privileges).\n"); 353 printf(" -f, --foreground\tDo not daemonize (implies one -v).\n");
354 printf("\t-u|--udev Run in udev operation mode.\n"); 354 printf(" -U, --user USER\tChange to this user after startup (needs USB privileges).\n");
355 printf("\t-x|--exit Tell a running instance to exit if there are no devices\n"); 355 printf(" -u, --udev\t\tRun in udev operation mode.\n");
356 printf("\t connected (must be in udev mode).\n"); 356 printf(" -x, --exit\t\tTell a running instance to exit if there are no devices\n");
357 printf("\t-X|--force-exit Tell a running instance to exit, even if there are still\n"); 357 printf(" \t\tconnected (must be in udev mode).\n");
358 printf("\t devices connected (always works).\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("\n"); 360 printf("\n");
360} 361}
361 362