Skip to content

Commit b38b29f

Browse files
Add check for if user supplied --release and --flag.
1 parent a07bf3f commit b38b29f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bootstrap/src/Fpm.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,9 @@ toml2AppSettings tomlSettings args = do
582582
Build { buildFlags = f } -> f
583583
Run { runFlags = f } -> f
584584
Test { testFlags = f } -> f
585+
when (release && (length specifiedFlags > 0)) $ do
586+
putStrLn "--release and --flag are mutually exclusive"
587+
exitWith (ExitFailure 1)
585588
librarySettings <- getLibrarySettings $ tomlSettingsLibrary tomlSettings
586589
executableSettings <- getExecutableSettings
587590
(tomlSettingsExecutables tomlSettings)

0 commit comments

Comments
 (0)