From 249ab2aee2c9692895d0adb676e22c592ea457a2 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 27 Mar 2014 10:22:46 +0100 Subject: Update command usage output to match best practice and other tools --- src/main.c | 21 +++++++++++---------- 1 file 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"); } -- cgit v1.1-32-gdbae