diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-02-29 13:00:46 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-02-29 13:00:46 -0400 |
commit | 25b87aadd8bdca484f1fb073c38e169ee2bc7503 (patch) | |
tree | a34a85fd37f979ac64f617bef01a1957a0a2b622 /doc/git-annex-metadata.mdwn | |
parent | 5b23c5d3baa15ca1200b2ee349b924c1d8395665 (diff) |
metadata: Added -r to remove all current values of a field.
Diffstat (limited to 'doc/git-annex-metadata.mdwn')
-rw-r--r-- | doc/git-annex-metadata.mdwn | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/doc/git-annex-metadata.mdwn b/doc/git-annex-metadata.mdwn index 39bb7f2fd..448784b50 100644 --- a/doc/git-annex-metadata.mdwn +++ b/doc/git-annex-metadata.mdwn @@ -19,34 +19,39 @@ When run without any -s or -t parameters, displays the current metadata. # OPTIONS -* `-g field` +* `-g field` / `--get field` Get the value(s) of a single field. The values will be output one per line, with no other output, so this is suitable for use in a script. -* `-s field=value` +* `-s field=value` / `--set field=value` Set a field's value, removing any old values. -* `-s field+=value` +* `-s field+=value` / `--set field+=value` Add an additional value, preserving any old values. -* `-s field-=value` +* `-s field?=value` / `--set field?=value` - Remove a value. + Set a value, but only if the field does not already have a value set. -* `-s field?=value` +* `-s field-=value` / `--set field-=value` - Set a value, but only if the field does not already have a value set. - -* `-t tag` + Remove a value from a field, leaving any other values that the field has + set. + +* `-r field` / `--remove field` + + Remove all current values of the field. + +* `-t tag` / `--tag tag` Set a tag. Note that a tag is just a value of the "tag" field. -* `-u tag` +* `-u tag` / `--unset tag` Unset a tag. |