diff options
Diffstat (limited to 'tools/idevicebackup2.c')
| -rw-r--r-- | tools/idevicebackup2.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index c2f04c2..382efc6 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c | |||
| @@ -1403,8 +1403,10 @@ static void print_usage(int argc, char **argv) | |||
| 1403 | char *name = NULL; | 1403 | char *name = NULL; |
| 1404 | name = strrchr(argv[0], '/'); | 1404 | name = strrchr(argv[0], '/'); |
| 1405 | printf("Usage: %s [OPTIONS] CMD [CMDOPTIONS] DIRECTORY\n", (name ? name + 1: argv[0])); | 1405 | printf("Usage: %s [OPTIONS] CMD [CMDOPTIONS] DIRECTORY\n", (name ? name + 1: argv[0])); |
| 1406 | printf("Create or restore backup from the current or specified directory.\n\n"); | 1406 | printf("\n"); |
| 1407 | printf("commands:\n"); | 1407 | printf("Create or restore backup from the current or specified directory.\n"); |
| 1408 | printf("\n"); | ||
| 1409 | printf("CMD:\n"); | ||
| 1408 | printf(" backup\tcreate backup for the device\n"); | 1410 | printf(" backup\tcreate backup for the device\n"); |
| 1409 | printf(" --full\t\tforce full backup from device.\n"); | 1411 | printf(" --full\t\tforce full backup from device.\n"); |
| 1410 | printf(" restore\trestore last backup to the device\n"); | 1412 | printf(" restore\trestore last backup to the device\n"); |
| @@ -1424,14 +1426,15 @@ static void print_usage(int argc, char **argv) | |||
| 1424 | printf(" NOTE: passwords will be requested in interactive mode if omitted\n"); | 1426 | printf(" NOTE: passwords will be requested in interactive mode if omitted\n"); |
| 1425 | printf(" cloud on|off\tenable or disable cloud use (requires iCloud account)\n"); | 1427 | printf(" cloud on|off\tenable or disable cloud use (requires iCloud account)\n"); |
| 1426 | printf("\n"); | 1428 | printf("\n"); |
| 1427 | printf("options:\n"); | 1429 | printf("OPTIONS:\n"); |
| 1428 | printf(" -d, --debug\t\tenable communication debugging\n"); | 1430 | printf(" -d, --debug\t\tenable communication debugging\n"); |
| 1429 | printf(" -u, --udid UDID\ttarget specific device by UDID\n"); | 1431 | printf(" -u, --udid UDID\ttarget specific device by UDID\n"); |
| 1430 | printf(" -s, --source UDID\tuse backup data from device specified by UDID\n"); | 1432 | printf(" -s, --source UDID\tuse backup data from device specified by UDID\n"); |
| 1431 | printf(" -i, --interactive\trequest passwords interactively\n"); | 1433 | printf(" -i, --interactive\trequest passwords interactively\n"); |
| 1432 | printf(" -h, --help\t\tprints usage information\n"); | 1434 | printf(" -h, --help\t\tprints usage information\n"); |
| 1433 | printf("\n"); | 1435 | printf("\n"); |
| 1434 | printf("Homepage: <" PACKAGE_URL ">\n"); | 1436 | printf("Homepage: <" PACKAGE_URL ">\n"); |
| 1437 | printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n"); | ||
| 1435 | } | 1438 | } |
| 1436 | 1439 | ||
| 1437 | #define DEVICE_VERSION(maj, min, patch) (((maj & 0xFF) << 16) | ((min & 0xFF) << 8) | (patch & 0xFF)) | 1440 | #define DEVICE_VERSION(maj, min, patch) (((maj & 0xFF) << 16) | ((min & 0xFF) << 8) | (patch & 0xFF)) |
