summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2020-06-04 04:24:55 +0200
committerGravatar Martin Szulecki2020-06-04 04:24:55 +0200
commit1d52782e6cfc578c4ed4ad14dfde301274d603f8 (patch)
treea6abd700df0049e586634bbdc324bd3c4c2ef122 /tools
parent0098fc0c19dce408c3e3a26fd5dc409edca1623c (diff)
downloadlibideviceactivation-1d52782e6cfc578c4ed4ad14dfde301274d603f8.tar.gz
libideviceactivation-1d52782e6cfc578c4ed4ad14dfde301274d603f8.tar.bz2
Unify ideviceactivation usage output with other tools and add bugreport URL
Diffstat (limited to 'tools')
-rw-r--r--tools/ideviceactivation.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/tools/ideviceactivation.c b/tools/ideviceactivation.c
index 6e6dd6b..a0adba1 100644
--- a/tools/ideviceactivation.c
+++ b/tools/ideviceactivation.c
@@ -50,15 +50,18 @@
static void print_usage(int argc, char **argv)
{
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("Usage: %s COMMAND [OPTIONS]\n", (name ? name + 1: argv[0]));
- printf("Activate or deactivate a device.\n\n");
+ printf("\n");
+ printf("Activate or deactivate a device.\n");
+ printf("\n");
printf("Where COMMAND is one of:\n");
printf(" activate\t\tattempt to activate the device\n");
printf(" deactivate\t\tdeactivate the device\n");
printf(" state\t\t\tquery device about its activation state\n");
- printf("\nThe following OPTIONS are accepted:\n");
+ printf("\n");
+ printf("The following OPTIONS are accepted:\n");
printf(" -d, --debug\t\tenable communication debugging\n");
printf(" -u, --udid UDID\ttarget specific device by UDID\n");
printf(" -b, --batch\t\texplicitly run in non-interactive mode (default: auto-detect)\n");
@@ -66,7 +69,8 @@ static void print_usage(int argc, char **argv)
printf(" -v, --version\t\tprint version information and exit\n");
printf(" -h, --help\t\tprints usage information\n");
printf("\n");
- printf("Homepage: <http://libimobiledevice.org>\n");
+ printf("Homepage: <" PACKAGE_URL ">\n");
+ printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
}
#ifdef WIN32