All commands that support --all also support a --key option, which limits them to acting on a single key.

This commit is contained in:
Joey Hess 2014-01-26 14:59:47 -04:00
parent 85398d068e
commit ec7443eb06
4 changed files with 26 additions and 13 deletions

View file

@ -81,6 +81,8 @@ keyOptions =
"operate on all versions of all files"
, Option ['U'] ["unused"] (NoArg (Annex.setFlag "unused"))
"operate on files found by last run of git-annex unused"
, Option [] ["key"] (ReqArg (Annex.setField "key") paramKey)
"operate on specified key"
]
fromOption :: Option