summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-09-08 15:08:14 +0200
committerGravatar Martin Szulecki2012-10-21 14:19:50 +0200
commitb3a679c7c6a2ab30aaac27abd79428b557511bf2 (patch)
treeba25365498bbcc1ca619879909b096829e7e9b7f /tools
parentfe0b5c23621693b54a413ebe58fcb44dbd81b006 (diff)
downloadlibimobiledevice-b3a679c7c6a2ab30aaac27abd79428b557511bf2.tar.gz
libimobiledevice-b3a679c7c6a2ab30aaac27abd79428b557511bf2.tar.bz2
ideviceprovision: Change usage of arguments to not use commands like options
Diffstat (limited to 'tools')
-rw-r--r--tools/ideviceprovision.c36
1 files changed, 19 insertions, 17 deletions
diff --git a/tools/ideviceprovision.c b/tools/ideviceprovision.c
index 02b4d1e..b9e255c 100644
--- a/tools/ideviceprovision.c
+++ b/tools/ideviceprovision.c
@@ -34,18 +34,20 @@ static void print_usage(int argc, char **argv)
char *name = NULL;
name = strrchr(argv[0], '/');
- printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0]));
- printf("Display the current date or set it on a device.\n\n");
- printf(" -d, --debug\t\tenable communication debugging\n");
- printf(" -u, --udid UDID\ttarget specific device by its 40-digit device UDID\n");
- printf(" -i, --install FILE\tInstalls the provisioning profile specified by FILE.\n");
- printf(" \tA valid .mobileprovision file is expected.\n");
- printf(" -l, --list\t\tGet a list of all provisioning profiles on the device.\n");
- printf(" -c, --copy PATH\tRetrieves all provisioning profiles from the device and\n");
- printf(" \tstores them into the existing directory specified by PATH.\n");
- printf(" \tThe files will be stored as UUID.mobileprovision\n");
- printf(" -r, --remove UUID\tRemoves the provisioning profile identified by UUID.\n");
- printf(" -h, --help\t\tprints usage information\n");
+ printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0]));
+ printf("Manage provisioning profiles on a device.\n\n");
+ printf(" Where COMMAND is one of:\n");
+ printf(" install FILE\tInstalls the provisioning profile specified by FILE.\n");
+ printf(" \tA valid .mobileprovision file is expected.\n");
+ printf(" list\t\tGet a list of all provisioning profiles on the device.\n");
+ printf(" copy PATH\tRetrieves all provisioning profiles from the device and\n");
+ printf(" \tstores them into the existing directory specified by PATH.\n");
+ printf(" \tThe files will be stored as UUID.mobileprovision\n");
+ printf(" remove UUID\tRemoves the provisioning profile identified by UUID.\n\n");
+ printf(" The following OPTIONS are accepted:\n");
+ printf(" -d, --debug enable communication debugging\n");
+ printf(" -u, --udid UDID target specific device by its 40-digit device UDID\n");
+ printf(" -h, --help prints usage information\n");
printf("\n");
}
@@ -209,7 +211,7 @@ int main(int argc, char *argv[])
udid = argv[i];
continue;
}
- else if (!strcmp(argv[i], "-i") || !strcmp(argv[i], "--install")) {
+ else if (!strcmp(argv[i], "install")) {
i++;
if (!argv[i] || (strlen(argv[i]) < 1)) {
print_usage(argc, argv);
@@ -219,10 +221,10 @@ int main(int argc, char *argv[])
op = OP_INSTALL;
continue;
}
- else if (!strcmp(argv[i], "-l") || !strcmp(argv[i], "--list")) {
- op = OP_LIST;
+ else if (!strcmp(argv[i], "list")) {
+ op = OP_LIST;
}
- else if (!strcmp(argv[i], "-c") || !strcmp(argv[i], "--copy")) {
+ else if (!strcmp(argv[i], "copy")) {
i++;
if (!argv[i] || (strlen(argv[i]) < 1)) {
print_usage(argc, argv);
@@ -232,7 +234,7 @@ int main(int argc, char *argv[])
op = OP_COPY;
continue;
}
- else if (!strcmp(argv[i], "-r") || !strcmp(argv[i], "--remove")) {
+ else if (!strcmp(argv[i], "remove")) {
i++;
if (!argv[i] || (strlen(argv[i]) < 1)) {
print_usage(argc, argv);