summaryrefslogtreecommitdiffstats
path: root/src/ideviceinstaller.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2020-06-04 04:49:29 +0200
committerGravatar Martin Szulecki2020-06-04 04:49:29 +0200
commitcc9353ce6547a7cc3184e29c5583aff8ef7a5916 (patch)
treed92c127329fe2d3ee58311b85491fd8b5feb97d9 /src/ideviceinstaller.c
parent0532de1f2ddcb9c0b4079a6b9cebf58ff2d7bc2d (diff)
downloadideviceinstaller-cc9353ce6547a7cc3184e29c5583aff8ef7a5916.tar.gz
ideviceinstaller-cc9353ce6547a7cc3184e29c5583aff8ef7a5916.tar.bz2
Unify usage output with other tools and add project URLs
Diffstat (limited to 'src/ideviceinstaller.c')
-rw-r--r--src/ideviceinstaller.c62
1 files changed, 34 insertions, 28 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index 190d8a2..cb977f4 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -385,34 +385,40 @@ static void print_usage(int argc, char **argv)
385 385
386 name = strrchr(argv[0], '/'); 386 name = strrchr(argv[0], '/');
387 printf("Usage: %s OPTIONS\n", (name ? name + 1 : argv[0])); 387 printf("Usage: %s OPTIONS\n", (name ? name + 1 : argv[0]));
388 printf("Manage apps on iOS devices.\n\n"); 388 printf("\n");
389 printf 389 printf("Manage apps on iOS devices.\n");
390 (" -u, --udid UDID\tTarget specific device by UDID.\n" 390 printf("\n");
391 " -l, --list-apps\tList apps, possible options:\n" 391 printf(
392 " -o list_user\t- list user apps only (this is the default)\n" 392 "OPTIONS:\n"
393 " -o list_system\t- list system apps only\n" 393 " -u, --udid UDID\tTarget specific device by UDID.\n"
394 " -o list_all\t- list all types of apps\n" 394 " -l, --list-apps\tList apps, possible options:\n"
395 " -o xml\t\t- print full output as xml plist\n" 395 " -o list_user\t- list user apps only (this is the default)\n"
396 " -i, --install ARCHIVE\tInstall app from package file specified by ARCHIVE.\n" 396 " -o list_system\t- list system apps only\n"
397 " \tARCHIVE can also be a .ipcc file for carrier bundles.\n" 397 " -o list_all\t- list all types of apps\n"
398 " -U, --uninstall APPID\tUninstall app specified by APPID.\n" 398 " -o xml\t\t- print full output as xml plist\n"
399 " -g, --upgrade ARCHIVE\tUpgrade app from package file specified by ARCHIVE.\n" 399 " -i, --install ARCHIVE\tInstall app from package file specified by ARCHIVE.\n"
400 " -L, --list-archives\tList archived applications, possible options:\n" 400 " \tARCHIVE can also be a .ipcc file for carrier bundles.\n"
401 " -o xml\t\t- print full output as xml plist\n" 401 " -U, --uninstall APPID\tUninstall app specified by APPID.\n"
402 " -a, --archive APPID\tArchive app specified by APPID, possible options:\n" 402 " -g, --upgrade ARCHIVE\tUpgrade app from package file specified by ARCHIVE.\n"
403 " -o uninstall\t- uninstall the package after making an archive\n" 403 " -L, --list-archives\tList archived applications, possible options:\n"
404 " -o app_only\t- archive application data only\n" 404 " -o xml\t\t- print full output as xml plist\n"
405 " -o docs_only\t- archive documents (user data) only\n" 405 " -a, --archive APPID\tArchive app specified by APPID, possible options:\n"
406 " -o copy=PATH\t- copy the app archive to directory PATH when done\n" 406 " -o uninstall\t- uninstall the package after making an archive\n"
407 " -o remove\t- only valid when copy=PATH is used: remove after copy\n" 407 " -o app_only\t- archive application data only\n"
408 " -r, --restore APPID\tRestore archived app specified by APPID\n" 408 " -o docs_only\t- archive documents (user data) only\n"
409 " -R, --remove-archive APPID Remove app archive specified by APPID\n" 409 " -o copy=PATH\t- copy the app archive to directory PATH when done\n"
410 " -o, --options\t\tPass additional options to the specified command.\n" 410 " -o remove\t- only valid when copy=PATH is used: remove after copy\n"
411 " -n, --notify-wait\t\tWait for app installed/uninstalled notification\n" 411 " -r, --restore APPID\tRestore archived app specified by APPID\n"
412 " \t\tto before reporting success of operation\n" 412 " -R, --remove-archive APPID Remove app archive specified by APPID\n"
413 " -h, --help\t\tprints usage information\n" 413 " -o, --options\t\tPass additional options to the specified command.\n"
414 " -d, --debug\t\tenable communication debugging\n" "\n"); 414 " -n, --notify-wait\t\tWait for app installed/uninstalled notification\n"
415 printf("Homepage: <http://libimobiledevice.org>\n"); 415 " \t\tto before reporting success of operation\n"
416 " -h, --help\t\tprints usage information\n"
417 " -d, --debug\t\tenable communication debugging\n"
418 "\n"
419 );
420 printf("Homepage: <" PACKAGE_URL ">\n");
421 printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
416} 422}
417 423
418static void parse_opts(int argc, char **argv) 424static void parse_opts(int argc, char **argv)