aboutsummaryrefslogtreecommitdiff
path: root/tprint/src/Options
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-03-01 10:41:08 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2016-03-01 10:41:08 +0100
commit8d811536eb1b45e2be3eb6be1e2f1a3feef04336 (patch)
tree8b41df226a7c2dd56d7d82fcfebf1a0f512b5179 /tprint/src/Options
parent11ed93f1d94aa3bffa7a660128ac802743024a02 (diff)
downloadthermoprint-8d811536eb1b45e2be3eb6be1e2f1a3feef04336.tar
thermoprint-8d811536eb1b45e2be3eb6be1e2f1a3feef04336.tar.gz
thermoprint-8d811536eb1b45e2be3eb6be1e2f1a3feef04336.tar.bz2
thermoprint-8d811536eb1b45e2be3eb6be1e2f1a3feef04336.tar.xz
thermoprint-8d811536eb1b45e2be3eb6be1e2f1a3feef04336.zip
Option to block and wait for job to be printed
Diffstat (limited to 'tprint/src/Options')
-rw-r--r--tprint/src/Options/Utils.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tprint/src/Options/Utils.hs b/tprint/src/Options/Utils.hs
index b3561e9..237aa56 100644
--- a/tprint/src/Options/Utils.hs
+++ b/tprint/src/Options/Utils.hs
@@ -5,6 +5,7 @@ module Options.Utils
5 , pPrinter 5 , pPrinter
6 , aDraft 6 , aDraft
7 , pTitle 7 , pTitle
8 , pBlock
8 ) where 9 ) where
9 10
10import Options.Applicative 11import Options.Applicative
@@ -60,3 +61,6 @@ aDraft = argument (DraftId <$> auto) (metavar "DRAFT")
60 61
61pTitle :: Parser DraftTitle 62pTitle :: Parser DraftTitle
62pTitle = option (T.pack <$> auto) $ metavar "TITLE" <> long "title" <> short 't' 63pTitle = option (T.pack <$> auto) $ metavar "TITLE" <> long "title" <> short 't'
64
65pBlock :: Parser Bool
66pBlock = switch $ long "block" <> short 'b' <> help "Do not return until job has finished printing or failed. Report errors during printing"