be direct!
This commit is contained in:
parent
29d9aed845
commit
c0c9c7a070
@ -25,7 +25,7 @@ add :: [Opt] -> [String] -> Ledger -> IO ()
|
|||||||
add opts args l
|
add opts args l
|
||||||
| filepath (rawledger l) == "-" = return ()
|
| filepath (rawledger l) == "-" = return ()
|
||||||
| otherwise = do
|
| otherwise = do
|
||||||
hPutStrLn stderr ("Please enter one or more transactions, which will be added to your ledger file.\n\
|
hPutStrLn stderr ("Enter one or more transactions, which will be added to your ledger file.\n\
|
||||||
\A blank account or amount ends a transaction, control-d to finish.")
|
\A blank account or amount ends a transaction, control-d to finish.")
|
||||||
ts <- getAndAddTransactions l args
|
ts <- getAndAddTransactions l args
|
||||||
hPutStrLn stderr $ printf "\nAdded %d transactions to %s" (length ts) (filepath $ rawledger l)
|
hPutStrLn stderr $ printf "\nAdded %d transactions to %s" (length ts) (filepath $ rawledger l)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user