aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorBrad Richardson <everythingfunctional@protonmail.com>2020-11-09 16:18:43 -0600
committerBrad Richardson <everythingfunctional@protonmail.com>2020-11-09 16:18:43 -0600
commitb38b29f1189d8f5c2dda4980e85b4f0b2b413689 (patch)
tree949834b3a70c23e1a2d5c3715eff654879073a3e /bootstrap
parenta07bf3fb3fc07a2c3bf13f8c36a158108a38cefa (diff)
downloadfpm-b38b29f1189d8f5c2dda4980e85b4f0b2b413689.tar.gz
fpm-b38b29f1189d8f5c2dda4980e85b4f0b2b413689.zip
Add check for if user supplied `--release` and `--flag`.
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/src/Fpm.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/bootstrap/src/Fpm.hs b/bootstrap/src/Fpm.hs
index 18831d8..de4eafb 100644
--- a/bootstrap/src/Fpm.hs
+++ b/bootstrap/src/Fpm.hs
@@ -582,6 +582,9 @@ toml2AppSettings tomlSettings args = do
Build { buildFlags = f } -> f
Run { runFlags = f } -> f
Test { testFlags = f } -> f
+ when (release && (length specifiedFlags > 0)) $ do
+ putStrLn "--release and --flag are mutually exclusive"
+ exitWith (ExitFailure 1)
librarySettings <- getLibrarySettings $ tomlSettingsLibrary tomlSettings
executableSettings <- getExecutableSettings
(tomlSettingsExecutables tomlSettings)