From 6fbd5da20951f42d302f4ff88d1079810684fd74 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Fri, 31 Jul 2015 07:38:40 +0300 Subject: [PATCH] Stop-gap only-dependencies to avoid confusion #387 --- src/Stack/Options.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Stack/Options.hs b/src/Stack/Options.hs index 3841c56136..c7eb8932cb 100644 --- a/src/Stack/Options.hs +++ b/src/Stack/Options.hs @@ -63,7 +63,8 @@ buildOptsParser :: Command buildOptsParser cmd defCopyBins = BuildOpts <$> target <*> libProfiling <*> exeProfiling <*> optimize <*> haddock <*> haddockDeps <*> finalAction <*> dryRun <*> ghcOpts <*> - flags <*> copyBins <*> preFetch <*> onlySnapshot <*> + flags <*> copyBins <*> preFetch <*> + ((||) <$> onlySnapshot <*> onlyDependencies) <*> fileWatch' <*> keepGoing <*> forceDirty where optimize = maybeBoolFlags "optimizations" "optimizations for TARGETs and all its dependencies" idm @@ -127,6 +128,9 @@ buildOptsParser cmd defCopyBins = onlySnapshot = flag False True (long "only-snapshot" <> help "Only build packages for the snapshot database, not the local database") + onlyDependencies = flag False True + (long "only-dependencies" <> + help "Currently: a synonym for only-snapshot, see https://github.com/commercialhaskell/stack/issues/387") fileWatch' = flag False True (long "file-watch" <>