Skip to content

Commit

Permalink
Unify ideviceactivation usage output with other tools and add bugrepo…
Browse files Browse the repository at this point in the history
…rt URL
  • Loading branch information
FunkyM committed Jun 4, 2020
1 parent 0098fc0 commit 1d52782
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tools/ideviceactivation.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,27 @@
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");
printf(" -s, --service URL\tuse activation webservice at URL instead of default\n");
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
Expand Down

0 comments on commit 1d52782

Please sign in to comment.