diff options
| author | 2020-06-04 02:30:40 +0200 | |
|---|---|---|
| committer | 2020-06-04 02:30:40 +0200 | |
| commit | d237e7125a6b19226598f4e53ae1455cff13f149 (patch) | |
| tree | 0ea672bcd7b7a66b75e5f49fc0ff8b0cd29becb3 | |
| parent | 4a33d6033561e20227a28541683dfefe10c15c5b (diff) | |
| download | libplist-d237e7125a6b19226598f4e53ae1455cff13f149.tar.gz libplist-d237e7125a6b19226598f4e53ae1455cff13f149.tar.bz2 | |
Unify plistutil usage output with other tools and add project URLs
| -rw-r--r-- | tools/plistutil.c | 15 |
1 files changed, 10 insertions, 5 deletions
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[]) | |||
| 49 | { | 49 | { |
| 50 | char *name = NULL; | 50 | char *name = NULL; |
| 51 | name = strrchr(argv[0], '/'); | 51 | name = strrchr(argv[0], '/'); |
| 52 | printf("Usage: %s -i|--infile FILE [-o|--outfile FILE] [-d|--debug]\n", (name ? name + 1: argv[0])); | 52 | printf("Usage: %s [OPTIONS] [-i FILE] [-o FILE]\n", (name ? name + 1: argv[0])); |
| 53 | printf("Convert a plist FILE from binary to XML format or vice-versa.\n\n"); | 53 | printf("\n"); |
| 54 | printf(" -i, --infile FILE Optional FILE to convert from or stdin if - or not used\n"); | 54 | printf("Convert a plist FILE from binary to XML format or vice-versa.\n"); |
| 55 | printf(" -o, --outfile FILE Optional FILE to convert to or stdout if - or not used\n"); | 55 | printf("\n"); |
| 56 | printf("OPTIONS:\n"); | ||
| 57 | printf(" -i, --infile FILE Optional FILE to convert from or stdin if - or not used\n"); | ||
| 58 | printf(" -o, --outfile FILE Optional FILE to convert to or stdout if - or not used\n"); | ||
| 56 | printf(" -f, --format [bin|xml] Force output format, regardless of input type\n"); | 59 | printf(" -f, --format [bin|xml] Force output format, regardless of input type\n"); |
| 57 | printf(" -d, --debug Enable extended debug output\n"); | 60 | printf(" -d, --debug Enable extended debug output\n"); |
| 58 | printf("\n"); | 61 | printf("\n"); |
| 62 | printf("Homepage: <" PACKAGE_URL ">\n"); | ||
| 63 | printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n"); | ||
| 59 | } | 64 | } |
| 60 | 65 | ||
| 61 | static options_t *parse_arguments(int argc, char *argv[]) | 66 | static options_t *parse_arguments(int argc, char *argv[]) |
