@@ -298,12 +298,23 @@ Options:
298
298
-j, --json Print output in JSON format, for use with
299
299
--list and --get.
300
300
-X, --wipe Wipe all metadata attributes from FILE.
301
- -s, --set ATTRIBUTE VALUE Set ATTRIBUTE to VALUE.
301
+ -s, --set ATTRIBUTE VALUE Set ATTRIBUTE to VALUE. If ATTRIBUTE is a
302
+ multi-value attribute, such as keywords
303
+ (kMDItemKeywords), you may specify --set
304
+ multiple times to add to the array of values:
305
+ '--set keywords foo --set keywords bar' will
306
+ set keywords to ['foo', 'bar']. Not that this
307
+ will overwrite any existing values for the
308
+ attribute; see also --append.
302
309
-l, --list List all metadata attributes for FILE.
303
310
-c, --clear ATTRIBUTE Remove attribute from FILE.
304
311
-a, --append ATTRIBUTE VALUE Append VALUE to ATTRIBUTE; for multi-valued
305
312
attributes, appends only if VALUE is not
306
- already present.
313
+ already present. May be used in combination
314
+ with --set to add to an existing value: '--set
315
+ keywords foo --append keywords bar' will set
316
+ keywords to ['foo', 'bar'], overwriting any
317
+ existing values for the attribute.
307
318
-g, --get ATTRIBUTE Get value of ATTRIBUTE.
308
319
-r, --remove ATTRIBUTE VALUE Remove VALUE from ATTRIBUTE; only applies to
309
320
multi-valued attributes.
0 commit comments