mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
;ui: drop redundant exitSuccess
This commit is contained in:
parent
3bee9a96c9
commit
dac3920221
@ -28,7 +28,6 @@ import qualified Data.Text as T
|
||||
-- import Data.Time.Calendar
|
||||
import Graphics.Vty (mkVty)
|
||||
import Safe
|
||||
import System.Exit
|
||||
import System.Directory
|
||||
import System.FilePath
|
||||
import System.FSNotify
|
||||
@ -70,8 +69,8 @@ main = do
|
||||
let copts' = copts{reportopts_=ropts{forecast_=True}}
|
||||
|
||||
case True of
|
||||
_ | "help" `inRawOpts` rawopts -> putStr (showModeUsage uimode) >> exitSuccess
|
||||
_ | "version" `inRawOpts` rawopts -> putStrLn prognameandversion >> exitSuccess
|
||||
_ | "help" `inRawOpts` rawopts -> putStr (showModeUsage uimode)
|
||||
_ | "version" `inRawOpts` rawopts -> putStrLn prognameandversion
|
||||
_ | "binary-filename" `inRawOpts` rawopts -> putStrLn (binaryfilename progname)
|
||||
_ -> withJournalDo copts' (runBrickUi opts)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user