From 5b3ff3fb3c8c4191e0d0a7653014d0b5fd9a0120 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 28 Sep 2017 12:36:10 -0400 Subject: 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. --- Command/MetaData.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Command') 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 -- cgit v1.2.3