diff options
author | Joey Hess <joey@kitenet.net> | 2010-11-13 16:15:45 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-11-13 16:15:45 -0400 |
commit | 19ee56559a191e0e794380363a1bd0b0c57ea22a (patch) | |
tree | 3d8ddcd8ea26bbaf7bd7790d2642d9f4905d05fb /Command.hs | |
parent | 7293ba2940dc7dcefa7376667fa4462b21e05ee0 (diff) |
better fsck file handling
Diffstat (limited to 'Command.hs')
-rw-r--r-- | Command.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Command.hs b/Command.hs index 3f68cf661..40a21cacc 100644 --- a/Command.hs +++ b/Command.hs @@ -44,6 +44,7 @@ type SubCmdStartString = String -> SubCmdStart type SubCmdSeekBackendFiles = SubCmdStartBackendFile -> SubCmdSeek type SubCmdStartBackendFile = (FilePath, Maybe Backend) -> SubCmdStart type SubCmdSeekNothing = SubCmdStart -> SubCmdSeek +type SubCmdStartNothing = SubCmdStart data SubCommand = SubCommand { subcmdname :: String, @@ -143,6 +144,9 @@ withKeys :: SubCmdSeekStrings withKeys a params = return $ map a params withTempFile :: SubCmdSeekStrings withTempFile a params = return $ map a params +withNothing :: SubCmdSeekNothing +withNothing a [] = return [a] +withNothing _ _ = return [] {- Default to acting on all files matching the seek action if - none are specified. -} |