From d2a15c5f6f0bd9cfbd4fbfe3d5139f5ac6e85d94 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 26 Apr 2011 15:07:15 +0200 Subject: idevicebackup4: Add info and list commands to usage output and make DIRECTORY argument mandatory --- tools/idevicebackup4.c | 8 +++++--- 1 file 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) { char *name = NULL; name = strrchr(argv[0], '/'); - printf("Usage: %s [OPTIONS] CMD [DIRECTORY]\n", (name ? name + 1: argv[0])); + printf("Usage: %s [OPTIONS] CMD DIRECTORY\n", (name ? name + 1: argv[0])); printf("Create or restore backup from the current or specified directory.\n\n"); printf("commands:\n"); - printf(" backup\tSaves a device backup into DIRECTORY\n"); - printf(" restore\tRestores a device backup from DIRECTORY.\n\n"); + printf(" backup\tSaves a device backup\n"); + printf(" restore\tRestores a device backup\n"); + printf(" info\t\tShows details about a completed device backup\n"); + printf(" list\t\tList files of completed device backup in CSV format\n\n"); printf("options:\n"); printf(" -d, --debug\t\tenable communication debugging\n"); printf(" -u, --uuid UUID\ttarget specific device by its 40-digit device UUID\n"); -- cgit v1.1-32-gdbae