From 8ac594f37dfedd0bd6f2bb1b45c8f472b31c66cd Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 26 Jun 2017 13:40:57 -0400 Subject: fsck: Support --json. One use case is to get a list of files that fsck fails on, in order to eg, drop them from a remote. This commit was sponsored by Nick Daly on Patreon. --- Command/Fsck.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Command') diff --git a/Command/Fsck.hs b/Command/Fsck.hs index 3dfb45e55..e38a10843 100644 --- a/Command/Fsck.hs +++ b/Command/Fsck.hs @@ -42,7 +42,7 @@ import Data.Time.Clock.POSIX import System.Posix.Types (EpochTime) cmd :: Command -cmd = withGlobalOptions (jobsOption : annexedMatchingOptions) $ +cmd = withGlobalOptions (jobsOption : jsonOption : annexedMatchingOptions) $ command "fsck" SectionMaintenance "find and fix problems" paramPaths (seek <$$> optParser) -- cgit v1.2.3