diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-03-01 10:41:08 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-03-01 10:41:08 +0100 |
commit | 8d811536eb1b45e2be3eb6be1e2f1a3feef04336 (patch) | |
tree | 8b41df226a7c2dd56d7d82fcfebf1a0f512b5179 /tprint/src/Options | |
parent | 11ed93f1d94aa3bffa7a660128ac802743024a02 (diff) | |
download | thermoprint-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.hs | 4 |
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 | ||
10 | import Options.Applicative | 11 | import Options.Applicative |
@@ -60,3 +61,6 @@ aDraft = argument (DraftId <$> auto) (metavar "DRAFT") | |||
60 | 61 | ||
61 | pTitle :: Parser DraftTitle | 62 | pTitle :: Parser DraftTitle |
62 | pTitle = option (T.pack <$> auto) $ metavar "TITLE" <> long "title" <> short 't' | 63 | pTitle = option (T.pack <$> auto) $ metavar "TITLE" <> long "title" <> short 't' |
64 | |||
65 | pBlock :: Parser Bool | ||
66 | pBlock = switch $ long "block" <> short 'b' <> help "Do not return until job has finished printing or failed. Report errors during printing" | ||