summaryrefslogtreecommitdiffstats
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
parent0532de1f2ddcb9c0b4079a6b9cebf58ff2d7bc2d (diff)
downloadideviceinstaller-cc9353ce6547a7cc3184e29c5583aff8ef7a5916.tar.gz
ideviceinstaller-cc9353ce6547a7cc3184e29c5583aff8ef7a5916.tar.bz2
Unify usage output with other tools and add project URLs
-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)
name = strrchr(argv[0], '/');
printf("Usage: %s OPTIONS\n", (name ? name + 1 : argv[0]));
- printf("Manage apps on iOS devices.\n\n");
- printf
- (" -u, --udid UDID\tTarget specific device by UDID.\n"
- " -l, --list-apps\tList apps, possible options:\n"
- " -o list_user\t- list user apps only (this is the default)\n"
- " -o list_system\t- list system apps only\n"
- " -o list_all\t- list all types of apps\n"
- " -o xml\t\t- print full output as xml plist\n"
- " -i, --install ARCHIVE\tInstall app from package file specified by ARCHIVE.\n"
- " \tARCHIVE can also be a .ipcc file for carrier bundles.\n"
- " -U, --uninstall APPID\tUninstall app specified by APPID.\n"
- " -g, --upgrade ARCHIVE\tUpgrade app from package file specified by ARCHIVE.\n"
- " -L, --list-archives\tList archived applications, possible options:\n"
- " -o xml\t\t- print full output as xml plist\n"
- " -a, --archive APPID\tArchive app specified by APPID, possible options:\n"
- " -o uninstall\t- uninstall the package after making an archive\n"
- " -o app_only\t- archive application data only\n"
- " -o docs_only\t- archive documents (user data) only\n"
- " -o copy=PATH\t- copy the app archive to directory PATH when done\n"
- " -o remove\t- only valid when copy=PATH is used: remove after copy\n"
- " -r, --restore APPID\tRestore archived app specified by APPID\n"
- " -R, --remove-archive APPID Remove app archive specified by APPID\n"
- " -o, --options\t\tPass additional options to the specified command.\n"
- " -n, --notify-wait\t\tWait for app installed/uninstalled notification\n"
- " \t\tto before reporting success of operation\n"
- " -h, --help\t\tprints usage information\n"
- " -d, --debug\t\tenable communication debugging\n" "\n");
- printf("Homepage: <http://libimobiledevice.org>\n");
+ printf("\n");
+ printf("Manage apps on iOS devices.\n");
+ printf("\n");
+ printf(
+ "OPTIONS:\n"
+ " -u, --udid UDID\tTarget specific device by UDID.\n"
+ " -l, --list-apps\tList apps, possible options:\n"
+ " -o list_user\t- list user apps only (this is the default)\n"
+ " -o list_system\t- list system apps only\n"
+ " -o list_all\t- list all types of apps\n"
+ " -o xml\t\t- print full output as xml plist\n"
+ " -i, --install ARCHIVE\tInstall app from package file specified by ARCHIVE.\n"
+ " \tARCHIVE can also be a .ipcc file for carrier bundles.\n"
+ " -U, --uninstall APPID\tUninstall app specified by APPID.\n"
+ " -g, --upgrade ARCHIVE\tUpgrade app from package file specified by ARCHIVE.\n"
+ " -L, --list-archives\tList archived applications, possible options:\n"
+ " -o xml\t\t- print full output as xml plist\n"
+ " -a, --archive APPID\tArchive app specified by APPID, possible options:\n"
+ " -o uninstall\t- uninstall the package after making an archive\n"
+ " -o app_only\t- archive application data only\n"
+ " -o docs_only\t- archive documents (user data) only\n"
+ " -o copy=PATH\t- copy the app archive to directory PATH when done\n"
+ " -o remove\t- only valid when copy=PATH is used: remove after copy\n"
+ " -r, --restore APPID\tRestore archived app specified by APPID\n"
+ " -R, --remove-archive APPID Remove app archive specified by APPID\n"
+ " -o, --options\t\tPass additional options to the specified command.\n"
+ " -n, --notify-wait\t\tWait for app installed/uninstalled notification\n"
+ " \t\tto before reporting success of operation\n"
+ " -h, --help\t\tprints usage information\n"
+ " -d, --debug\t\tenable communication debugging\n"
+ "\n"
+ );
+ printf("Homepage: <" PACKAGE_URL ">\n");
+ printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
}
static void parse_opts(int argc, char **argv)