diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-06-26 13:40:57 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-06-26 13:40:57 -0400 |
commit | 8ac594f37dfedd0bd6f2bb1b45c8f472b31c66cd (patch) | |
tree | 8d28c9c8f08a3f131cc88ff3ce67eb193401839d /Command | |
parent | c3c705fe7f5c04e8d2c065066e6f544f8dffafe1 (diff) |
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.
Diffstat (limited to 'Command')
-rw-r--r-- | Command/Fsck.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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) |