diff options
| author | 2026-03-22 19:16:51 +0100 | |
|---|---|---|
| committer | 2026-03-22 19:16:51 +0100 | |
| commit | c8b36a80bad4a1fe488927af4da0ecbcf10079bb (patch) | |
| tree | 657066f92a85dc43bd51af7698e76d00c29c0b4a /docs/plistutil.1 | |
| parent | 3edac28498d883f1f768699ee15ce85a82bb2a7b (diff) | |
| download | libplist-c8b36a80bad4a1fe488927af4da0ecbcf10079bb.tar.gz libplist-c8b36a80bad4a1fe488927af4da0ecbcf10079bb.tar.bz2 | |
Add OpenStep coercion support for non-OpenStep plist types
- Use PLIST_OPT_COERCE option to coerce PLIST_BOOLEAN, PLIST_DATE, PLIST_UID, and PLIST_NULL to OpenStep-compatible types (1 or 0, ISO 8601 strings, integers, and 'NULL' string)
- Add plist_to_openstep_with_options() function to allow passing coercion option (and others)
- Update plist_write_to_string() and plist_write_to_stream() accordingly
Diffstat (limited to 'docs/plistutil.1')
| -rw-r--r-- | docs/plistutil.1 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/plistutil.1 b/docs/plistutil.1 index f322bab..64373b3 100644 --- a/docs/plistutil.1 +++ b/docs/plistutil.1 | |||
| @@ -79,6 +79,17 @@ A nodepath of: | |||
| 79 | JSON and OpenStep only: Print output in compact form. By default, the output | 79 | JSON and OpenStep only: Print output in compact form. By default, the output |
| 80 | will be pretty-printed. | 80 | will be pretty-printed. |
| 81 | .TP | 81 | .TP |
| 82 | .B \-C, \-\-coerce | ||
| 83 | JSON and OpenStep only: Coerce non-compatible plist types to JSON/OpenStep | ||
| 84 | compatible representations. | ||
| 85 | Date values become ISO 8601 strings, | ||
| 86 | data values become Base64-encoded strings (JSON), | ||
| 87 | UID values become integers, | ||
| 88 | boolean becomes 1 or 0 (OpenStep), | ||
| 89 | and NULL becomes a string 'NULL' (OpenStep) | ||
| 90 | |||
| 91 | This options is implied when invoked as plist2json. | ||
| 92 | .TP | ||
| 82 | .B \-s, \-\-sort | 93 | .B \-s, \-\-sort |
| 83 | Sort all dictionary nodes lexicographically by key before converting to the output format. | 94 | Sort all dictionary nodes lexicographically by key before converting to the output format. |
| 84 | .TP | 95 | .TP |
