Skip to content

Commit 20ef4ad

Browse files
committed
updated README
1 parent cbfbdaa commit 20ef4ad

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,23 @@ Options:
298298
-j, --json Print output in JSON format, for use with
299299
--list and --get.
300300
-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.
302309
-l, --list List all metadata attributes for FILE.
303310
-c, --clear ATTRIBUTE Remove attribute from FILE.
304311
-a, --append ATTRIBUTE VALUE Append VALUE to ATTRIBUTE; for multi-valued
305312
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.
307318
-g, --get ATTRIBUTE Get value of ATTRIBUTE.
308319
-r, --remove ATTRIBUTE VALUE Remove VALUE from ATTRIBUTE; only applies to
309320
multi-valued attributes.

0 commit comments

Comments
 (0)