summaryrefslogtreecommitdiff
path: root/Coolbal/Options.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Coolbal/Options.hs')
-rw-r--r--Coolbal/Options.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Coolbal/Options.hs b/Coolbal/Options.hs
index 8b1f807..7901386 100644
--- a/Coolbal/Options.hs
+++ b/Coolbal/Options.hs
@@ -10,6 +10,7 @@ import Options.Applicative
data Options
= Build BuildOptions
+ | Rebuild BuildOptions
| Clean
| Configure
| Run RunOptions
@@ -38,6 +39,8 @@ root =
hsubparser (
command "build" (info (Build <$> buildOptions)
(progDesc "Build the project"))
+ <> command "rebuild" (info (Rebuild <$> buildOptions)
+ (progDesc "Rebuild after deleting compilation artifacts for this project"))
<> command "run" (info (Run <$> runOptions)
(progDesc "Run an executable from the project"))
<> command "clean" (info (pure Clean)