summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/ideviceactivation.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/ideviceactivation.c b/tools/ideviceactivation.c
index 547dfe6..aafce71 100644
--- a/tools/ideviceactivation.c
+++ b/tools/ideviceactivation.c
@@ -19,6 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -43,6 +47,7 @@ static void print_usage(int argc, char **argv)
printf(" -d, --debug\t\tenable communication debugging\n");
printf(" -u, --udid UDID\ttarget specific device by its 40-digit device UDID\n");
printf(" -s, --service URL\tuse activation webservice at URL instead of default\n");
+ printf(" -v, --version\t\tprint version information and exit\n");
printf(" -h, --help\t\tprints usage information\n");
printf("\n");
}
@@ -101,6 +106,10 @@ int main(int argc, char *argv[])
print_usage(argc, argv);
return EXIT_SUCCESS;
}
+ else if (!strcmp(argv[i], "-v") || !strcmp(argv[i], "--version")) {
+ printf("ideviceactivation %s\n", PACKAGE_VERSION);
+ return EXIT_SUCCESS;
+ }
else if (!strcmp(argv[i], "activate")) {
op = OP_ACTIVATE;
continue;