diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-09-28 12:36:10 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-09-28 12:36:10 -0400 |
commit | 5b3ff3fb3c8c4191e0d0a7653014d0b5fd9a0120 (patch) | |
tree | c92045726b3768319d060a53459b46ae73ff445f /Command | |
parent | 212d9db545ef30fd42bfb6848cef37a36976cc17 (diff) |
metadata: Added --remove-all.
Motivation is to remove all metadata when it gets copied from a previous
version of the file, and that is not deisrable.
This commit was supported by the NSF-funded DataLad project.
Diffstat (limited to 'Command')
-rw-r--r-- | Command/MetaData.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Command/MetaData.hs b/Command/MetaData.hs index d10fc9921..f3a39dee9 100644 --- a/Command/MetaData.hs +++ b/Command/MetaData.hs @@ -64,6 +64,10 @@ optParser desc = MetaDataOptions ( long "remove" <> short 'r' <> metavar "FIELD" <> help "remove all values of a field" ) + <|> flag' DelAllMeta + ( long "remove-all" + <> help "remove all metadata" + ) seek :: MetaDataOptions -> CommandSeek seek o = case batchOption o of |