summaryrefslogtreecommitdiffstats
path: root/tools/idevicesetlocation.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-04-30 13:31:20 +0200
committerGravatar Nikias Bassen2022-04-30 13:31:20 +0200
commit6cb13f9e6d3939930aecf91d8e23d1896a3b92e5 (patch)
tree371e4676ac914d9eef6bb4cfc0b5b6dc6f27da4f /tools/idevicesetlocation.c
parent3b5cad28fabb236e05b8fff82fab5098127aa2bb (diff)
downloadlibimobiledevice-6cb13f9e6d3939930aecf91d8e23d1896a3b92e5.tar.gz
libimobiledevice-6cb13f9e6d3939930aecf91d8e23d1896a3b92e5.tar.bz2
tools: Use getopt for option parsing in all tools
Diffstat (limited to 'tools/idevicesetlocation.c')
-rw-r--r--tools/idevicesetlocation.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/tools/idevicesetlocation.c b/tools/idevicesetlocation.c
index 6237a1a..69fbaf5 100644
--- a/tools/idevicesetlocation.c
+++ b/tools/idevicesetlocation.c
@@ -51,15 +51,16 @@ static void print_usage(int argc, char **argv, int is_error)
51 51
52 fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS] -- <LAT> <LONG>\n", bname); 52 fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS] -- <LAT> <LONG>\n", bname);
53 fprintf(is_error ? stderr : stdout, " %s [OPTIONS] reset\n", bname); 53 fprintf(is_error ? stderr : stdout, " %s [OPTIONS] reset\n", bname);
54 fprintf(is_error ? stderr : stdout, "\n" \ 54 fprintf(is_error ? stderr : stdout,
55 "OPTIONS:\n" \ 55 "\n"
56 " -u, --udid UDID target specific device by UDID\n" \ 56 "OPTIONS:\n"
57 " -n, --network connect to network device\n" \ 57 " -u, --udid UDID target specific device by UDID\n"
58 " -d, --debug enable communication debugging\n" \ 58 " -n, --network connect to network device\n"
59 " -h, --help prints usage information\n" \ 59 " -d, --debug enable communication debugging\n"
60 " -v, --version prints version information\n" \ 60 " -h, --help prints usage information\n"
61 "\n" \ 61 " -v, --version prints version information\n"
62 "Homepage: <" PACKAGE_URL ">\n" \ 62 "\n"
63 "Homepage: <" PACKAGE_URL ">\n"
63 "Bug Reports: <" PACKAGE_BUGREPORT ">\n" 64 "Bug Reports: <" PACKAGE_BUGREPORT ">\n"
64 ); 65 );
65} 66}