drop some experimental pprint logging
This commit is contained in:
parent
3eac48871c
commit
6e7610c1b7
@ -40,7 +40,6 @@ module Hledger.Cli.Main where
|
||||
|
||||
import Control.Monad
|
||||
import Data.List
|
||||
import Data.PPrint
|
||||
import Safe
|
||||
import System.Console.CmdArgs.Explicit (modeHelp)
|
||||
-- import System.Console.CmdArgs.Helper
|
||||
@ -114,9 +113,8 @@ main = do
|
||||
version = putStrLn prognameandversion
|
||||
badCommandError = error' ("command "++rawcmd++" is not recognized, run with no command to see a list") >> exitFailure
|
||||
f `orShowHelp` mode = if hasHelp args then putStr (showModeHelp mode) else f
|
||||
when (debug_ opts) $ do
|
||||
putStrLn $ "processed opts:\n" ++ show opts
|
||||
putStrLn . show =<< pprint opts
|
||||
when (debug_ opts > 0) $ do
|
||||
putStrLn $ "processed opts:\n" ++ ppShow opts
|
||||
putStrLn $ "command matched: " ++ show cmd
|
||||
putStrLn $ "isNullCommand: " ++ show isNullCommand
|
||||
putStrLn $ "isInternalCommand: " ++ show isInternalCommand
|
||||
|
||||
@ -90,7 +90,6 @@ import Control.Monad (when)
|
||||
import Data.List
|
||||
import Data.List.Split
|
||||
import Data.Maybe
|
||||
import Data.PPrint (pprint)
|
||||
import Data.Time.Calendar
|
||||
import Safe
|
||||
import System.Console.CmdArgs
|
||||
@ -715,7 +714,6 @@ debugArgs args opts =
|
||||
putStrLn $ "running: " ++ progname
|
||||
putStrLn $ "raw args: " ++ show args
|
||||
putStrLn $ "processed opts:\n" ++ show opts
|
||||
putStrLn . show =<< pprint opts
|
||||
d <- getCurrentDay
|
||||
putStrLn $ "search query: " ++ (show $ queryFromOpts d $ reportopts_ opts)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user