summaryrefslogtreecommitdiffstats
path: root/src
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 /src
parent8ba560fdd177f107c5a0cf667d4e4ab3b0c59f4a (diff)
downloadusbmuxd-249ab2aee2c9692895d0adb676e22c592ea457a2.tar.gz
usbmuxd-249ab2aee2c9692895d0adb676e22c592ea457a2.tar.bz2
Update command usage output to match best practice and other tools
Diffstat (limited to 'src')
-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)
static void usage()
{
- printf("usage: usbmuxd [options]\n");
- printf("\t-h|--help Print this message.\n");
- printf("\t-v|--verbose Be verbose (use twice or more to increase).\n");
- printf("\t-f|--foreground Do not daemonize (implies one -v).\n");
- printf("\t-U|--user USER Change to this user after startup (needs usb privileges).\n");
- printf("\t-u|--udev Run in udev operation mode.\n");
- printf("\t-x|--exit Tell a running instance to exit if there are no devices\n");
- printf("\t connected (must be in udev mode).\n");
- printf("\t-X|--force-exit Tell a running instance to exit, even if there are still\n");
- printf("\t devices connected (always works).\n");
+ printf("Usage: %s [OPTIONS]\n", PACKAGE_NAME);
+ printf("Expose a socket to multiplex connections from and to iOS devices.\n\n");
+ printf(" -h, --help\t\tPrint this message.\n");
+ printf(" -v, --verbose\t\tBe verbose (use twice or more to increase).\n");
+ printf(" -f, --foreground\tDo not daemonize (implies one -v).\n");
+ printf(" -U, --user USER\tChange to this user after startup (needs USB privileges).\n");
+ printf(" -u, --udev\t\tRun in udev operation mode.\n");
+ printf(" -x, --exit\t\tTell a running instance to exit if there are no devices\n");
+ printf(" \t\tconnected (must be in udev mode).\n");
+ printf(" -X, --force-exit\tTell a running instance to exit, even if there are still\n");
+ printf(" \tdevices connected (always works).\n");
printf("\n");
}