summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2020-06-04 02:38:22 +0200
committerGravatar Martin Szulecki2020-06-04 02:38:22 +0200
commit145d3a2f8fb4c5dbc04b77f6243552e93d4cf316 (patch)
treefcf7b226288ed9274492e4e5716a6ff7c3a10b01
parent585c74ab762cd3aaf432fdea1798c21db192191a (diff)
downloadlibusbmuxd-145d3a2f8fb4c5dbc04b77f6243552e93d4cf316.tar.gz
libusbmuxd-145d3a2f8fb4c5dbc04b77f6243552e93d4cf316.tar.bz2
Unify usage output of tools and use proper indentation
-rw-r--r--tools/inetcat.c24
-rw-r--r--tools/iproxy.c27
2 files changed, 27 insertions, 24 deletions
diff --git a/tools/inetcat.c b/tools/inetcat.c
index adcb1f1..af03dc0 100644
--- a/tools/inetcat.c
+++ b/tools/inetcat.c
@@ -79,18 +79,20 @@ static void print_usage(int argc, char **argv, int is_error)
{
char *name = NULL;
name = strrchr(argv[0], '/');
- fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS] DEVICE_PORT\n\n", (name ? name + 1: argv[0]));
+ fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS] DEVICE_PORT\n", (name ? name + 1: argv[0]));
fprintf(is_error ? stderr : stdout,
- "Opens a read/write interface via STDIN/STDOUT to a TCP port on a usbmux device.\n\n" \
- " -u, --udid UDID target specific device by UDID\n" \
- " -n, --network connect to network device\n" \
- " -l, --local connect to USB device (default)\n" \
- " -h, --help prints usage information\n" \
- " -d, --debug increase debug level\n" \
- "\n" \
- "Homepage: <" PACKAGE_URL ">\n"
- "Bug reports: <" PACKAGE_BUGREPORT ">\n"
- "\n"
+ "\n" \
+ "Opens a read/write interface via STDIN/STDOUT to a TCP port on a usbmux device.\n" \
+ "\n" \
+ "OPTIONS:\n" \
+ " -u, --udid UDID target specific device by UDID\n" \
+ " -n, --network connect to network device\n" \
+ " -l, --local connect to USB device (default)\n" \
+ " -h, --help prints usage information\n" \
+ " -d, --debug increase debug level\n" \
+ "\n" \
+ "Homepage: <" PACKAGE_URL ">\n"
+ "Bug Reports: <" PACKAGE_BUGREPORT ">\n"
);
}
diff --git a/tools/iproxy.c b/tools/iproxy.c
index e81b290..208b6da 100644
--- a/tools/iproxy.c
+++ b/tools/iproxy.c
@@ -214,20 +214,21 @@ static void print_usage(int argc, char **argv, int is_error)
{
char *name = NULL;
name = strrchr(argv[0], '/');
- fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS] LOCAL_PORT:DEVICE_PORT [LOCAL_PORT2:DEVICE_PORT2 ...]\n\n", (name ? name+1 : argv[0]));
+ fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS] LOCAL_PORT:DEVICE_PORT [LOCAL_PORT2:DEVICE_PORT2 ...]\n", (name ? name+1 : argv[0]));
fprintf(is_error ? stderr : stdout,
- "Proxy that binds local TCP ports to be forwarded to the specified ports on a usbmux device.\n\n" \
- "OPTIONS:\n" \
- " -u, --udid UDID target specific device by UDID\n" \
- " -n, --network connect to network device\n" \
- " -l, --local connect to USB device (default)\n" \
- " -s, --source ADDR source address for listening socket (default 127.0.0.1)\n" \
- " -h, --help prints usage information\n" \
- " -d, --debug increase debug level\n" \
- "\n" \
- "Homepage: <" PACKAGE_URL ">\n"
- "Bug reports: <" PACKAGE_BUGREPORT ">\n"
- "\n"
+ "\n" \
+ "Proxy that binds local TCP ports to be forwarded to the specified ports on a usbmux device.\n" \
+ "\n" \
+ "OPTIONS:\n" \
+ " -u, --udid UDID target specific device by UDID\n" \
+ " -n, --network connect to network device\n" \
+ " -l, --local connect to USB device (default)\n" \
+ " -s, --source ADDR source address for listening socket (default 127.0.0.1)\n" \
+ " -h, --help prints usage information\n" \
+ " -d, --debug increase debug level\n" \
+ "\n" \
+ "Homepage: <" PACKAGE_URL ">\n"
+ "Bug Reports: <" PACKAGE_BUGREPORT ">\n"
);
}