diff options
| author | 2023-02-07 11:43:04 +0100 | |
|---|---|---|
| committer | 2023-02-07 11:43:04 +0100 | |
| commit | fe1b22723868b038c4d0b84d9582edcdd888af97 (patch) | |
| tree | 7db408f97a23c3283eebf1e02caec03bfab9c614 /tools/plistutil.c | |
| parent | 6390abcd1c94f4c29291c81322726d6946fd345f (diff) | |
| download | libplist-fe1b22723868b038c4d0b84d9582edcdd888af97.tar.gz libplist-fe1b22723868b038c4d0b84d9582edcdd888af97.tar.bz2 | |
Add function to interface to allow enabling/disabling error/debug output for the format parses
This makes the `-d` option work in plistutil that wasn't doing anything
Diffstat (limited to 'tools/plistutil.c')
| -rw-r--r-- | tools/plistutil.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/plistutil.c b/tools/plistutil.c index 1c199fe..4b83df3 100644 --- a/tools/plistutil.c +++ b/tools/plistutil.c | |||
| @@ -184,6 +184,11 @@ int main(int argc, char *argv[]) | |||
| 184 | return 0; | 184 | return 0; |
| 185 | } | 185 | } |
| 186 | 186 | ||
| 187 | if (options->flags & OPT_DEBUG) | ||
| 188 | { | ||
| 189 | plist_set_debug(1); | ||
| 190 | } | ||
| 191 | |||
| 187 | if (!options->in_file || !strcmp(options->in_file, "-")) | 192 | if (!options->in_file || !strcmp(options->in_file, "-")) |
| 188 | { | 193 | { |
| 189 | read_size = 0; | 194 | read_size = 0; |
