diff options
author | Joey Hess <joey@kitenet.net> | 2013-07-04 02:36:02 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-07-04 02:36:02 -0400 |
commit | 6b3a9cdaddec120f27e947e03ece5ee2ebde1d14 (patch) | |
tree | 14ee0b96ed66ba71fe2843f002f4f56f915c9ff5 /Seek.hs | |
parent | 8a7785e219c5aa08e0c91a813022e03cb92f16a3 (diff) |
moved AssociatedFile definition
Diffstat (limited to 'Seek.hs')
-rw-r--r-- | Seek.hs | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -134,15 +134,15 @@ withNothing _ _ = error "This command takes no parameters." withKeyOptions :: (Key -> CommandStart) -> CommandSeek -> CommandSeek withKeyOptions keyop fallbackop params = do bare <- fromRepo Git.repoIsLocalBare - all <- Annex.getFlag "all" <||> pure bare + allkeys <- Annex.getFlag "all" <||> pure bare unused <- Annex.getFlag "unused" auto <- Annex.getState Annex.auto - case (all , unused, auto ) of - (True , False , False) -> go loggedKeys - (False, True , False) -> go unusedKeys - (True , True , _ ) -> error "Cannot use --all with --unused." - (False, False , _ ) -> fallbackop params - (_ , _ , True ) + case (allkeys , unused, auto ) of + (True , False , False) -> go loggedKeys + (False , True , False) -> go unusedKeys + (True , True , _ ) -> error "Cannot use --all with --unused." + (False , False , _ ) -> fallbackop params + (_ , _ , True ) | bare -> error "Cannot use --auto in a bare repository." | otherwise -> error "Cannot use --auto with --all or --unused." where |