From d237e7125a6b19226598f4e53ae1455cff13f149 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 4 Jun 2020 02:30:40 +0200 Subject: Unify plistutil usage output with other tools and add project URLs --- tools/plistutil.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'tools') diff --git a/tools/plistutil.c b/tools/plistutil.c index dbbfbf6..e439d13 100644 --- a/tools/plistutil.c +++ b/tools/plistutil.c @@ -49,13 +49,18 @@ static void print_usage(int argc, char *argv[]) { char *name = NULL; name = strrchr(argv[0], '/'); - printf("Usage: %s -i|--infile FILE [-o|--outfile FILE] [-d|--debug]\n", (name ? name + 1: argv[0])); - printf("Convert a plist FILE from binary to XML format or vice-versa.\n\n"); - printf(" -i, --infile FILE Optional FILE to convert from or stdin if - or not used\n"); - printf(" -o, --outfile FILE Optional FILE to convert to or stdout if - or not used\n"); + printf("Usage: %s [OPTIONS] [-i FILE] [-o FILE]\n", (name ? name + 1: argv[0])); + printf("\n"); + printf("Convert a plist FILE from binary to XML format or vice-versa.\n"); + printf("\n"); + printf("OPTIONS:\n"); + printf(" -i, --infile FILE Optional FILE to convert from or stdin if - or not used\n"); + printf(" -o, --outfile FILE Optional FILE to convert to or stdout if - or not used\n"); printf(" -f, --format [bin|xml] Force output format, regardless of input type\n"); - printf(" -d, --debug Enable extended debug output\n"); + printf(" -d, --debug Enable extended debug output\n"); printf("\n"); + printf("Homepage: <" PACKAGE_URL ">\n"); + printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n"); } static options_t *parse_arguments(int argc, char *argv[]) -- cgit v1.1-32-gdbae