polish, docs

This commit is contained in:
Simon Michael 2009-04-08 06:23:49 +00:00
parent 8e4927edcd
commit aa220f6393
3 changed files with 9 additions and 4 deletions

View File

@ -23,9 +23,9 @@ 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 ("Please enter one or more transactions, which will be added to your ledger file.\n\
\A blank account or amount ends the current transaction, control-d to finish.") \A blank account or amount ends a transaction, control-d to finish.")
ts <- getAndAddTransactions l ts <- getAndAddTransactions l
putStrLn $ printf "\n\nAdded %d transactions to %s ." (length ts) (filepath $ rawledger l) putStrLn $ printf "\nAdded %d transactions to %s ." (length ts) (filepath $ rawledger l)
-- | Read a number of ledger transactions from the command line, -- | Read a number of ledger transactions from the command line,
-- prompting, validating, displaying and appending them to the ledger file. -- prompting, validating, displaying and appending them to the ledger file.

View File

@ -67,8 +67,8 @@ options = [
,Option ['U'] ["uncleared"] (NoArg UnCleared) "report only on uncleared transactions" ,Option ['U'] ["uncleared"] (NoArg UnCleared) "report only on uncleared transactions"
,Option ['B'] ["cost","basis"] (NoArg CostBasis) "report cost of commodities" ,Option ['B'] ["cost","basis"] (NoArg CostBasis) "report cost of commodities"
,Option [] ["depth"] (ReqArg Depth "N") "hide accounts/transactions deeper than this" ,Option [] ["depth"] (ReqArg Depth "N") "hide accounts/transactions deeper than this"
,Option ['d'] ["display"] (ReqArg Display "EXPR") ("show only transactions matching simple EXPR\n" ++ ,Option ['d'] ["display"] (ReqArg Display "EXPR") ("show only transactions matching EXPR (where\n" ++
"(where EXPR is 'dOP[DATE]', OP is <, <=, =, >=, >)") "EXPR is 'dOP[DATE]' and OP is <, <=, =, >=, >)")
,Option ['E'] ["empty"] (NoArg Empty) "show empty/zero things which are normally elided" ,Option ['E'] ["empty"] (NoArg Empty) "show empty/zero things which are normally elided"
,Option ['R'] ["real"] (NoArg Real) "report only on real (non-virtual) transactions" ,Option ['R'] ["real"] (NoArg Real) "report only on real (non-virtual) transactions"
,Option [] ["no-total"] (NoArg NoTotal) "balance report: hide the final total" ,Option [] ["no-total"] (NoArg NoTotal) "balance report: hide the final total"

5
README
View File

@ -55,8 +55,10 @@ results. Here are some commands to try::
hledger reg income # transactions to/from an income account hledger reg income # transactions to/from an income account
hledger reg checking # checking transactions hledger reg checking # checking transactions
hledger reg desc:shop # transactions with shop in the description hledger reg desc:shop # transactions with shop in the description
hledger histogram # transactions per day, or other interval
hledger ui # interactive ui, if you're on unix/mac hledger ui # interactive ui, if you're on unix/mac
hledger web # web ui, if you installed with -f happs hledger web # web ui, if you installed with -f happs
echo >new; hledger -f new add # input transactions from the command line
Time reporting Time reporting
@ -130,6 +132,8 @@ We handle (almost) the full period expression syntax, and very limited
display expressions consisting of a simple date predicate. Also the display expressions consisting of a simple date predicate. Also the
following new commands are supported:: following new commands are supported::
histogram show a barchart of transaction counts
add input transactions from the command line
ui a simple interactive text ui (only on unix platforms) ui a simple interactive text ui (only on unix platforms)
web a simple web ui web a simple web ui
test run self-tests test run self-tests
@ -213,3 +217,4 @@ Other differences
* hledger register report always sorts transactions by date * hledger register report always sorts transactions by date
* hledger doesn't show description comments as part of the description * hledger doesn't show description comments as part of the description
* hledger print puts a blank line after the entry, not before it * hledger print puts a blank line after the entry, not before it
* hledger doesn't print the trailing spaces after amount-elided postings