summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2011-04-26 15:07:15 +0200
committerGravatar Martin Szulecki2011-04-26 15:07:15 +0200
commitd2a15c5f6f0bd9cfbd4fbfe3d5139f5ac6e85d94 (patch)
tree47b1f1f447a16a732f2738135f7f11dfcb392cc3
parent8dfc72fed96e3a2930a907ac01b17928869620dc (diff)
downloadlibimobiledevice-d2a15c5f6f0bd9cfbd4fbfe3d5139f5ac6e85d94.tar.gz
libimobiledevice-d2a15c5f6f0bd9cfbd4fbfe3d5139f5ac6e85d94.tar.bz2
idevicebackup4: Add info and list commands to usage output and make DIRECTORY argument mandatory
-rw-r--r--tools/idevicebackup4.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/idevicebackup4.c b/tools/idevicebackup4.c
index 980cc75..4235e08 100644
--- a/tools/idevicebackup4.c
+++ b/tools/idevicebackup4.c
@@ -941,11 +941,13 @@ static void print_usage(int argc, char **argv)
941{ 941{
942 char *name = NULL; 942 char *name = NULL;
943 name = strrchr(argv[0], '/'); 943 name = strrchr(argv[0], '/');
944 printf("Usage: %s [OPTIONS] CMD [DIRECTORY]\n", (name ? name + 1: argv[0])); 944 printf("Usage: %s [OPTIONS] CMD DIRECTORY\n", (name ? name + 1: argv[0]));
945 printf("Create or restore backup from the current or specified directory.\n\n"); 945 printf("Create or restore backup from the current or specified directory.\n\n");
946 printf("commands:\n"); 946 printf("commands:\n");
947 printf(" backup\tSaves a device backup into DIRECTORY\n"); 947 printf(" backup\tSaves a device backup\n");
948 printf(" restore\tRestores a device backup from DIRECTORY.\n\n"); 948 printf(" restore\tRestores a device backup\n");
949 printf(" info\t\tShows details about a completed device backup\n");
950 printf(" list\t\tList files of completed device backup in CSV format\n\n");
949 printf("options:\n"); 951 printf("options:\n");
950 printf(" -d, --debug\t\tenable communication debugging\n"); 952 printf(" -d, --debug\t\tenable communication debugging\n");
951 printf(" -u, --uuid UUID\ttarget specific device by its 40-digit device UUID\n"); 953 printf(" -u, --uuid UUID\ttarget specific device by its 40-digit device UUID\n");