polish, docs
This commit is contained in:
parent
8e4927edcd
commit
aa220f6393
@ -23,9 +23,9 @@ add opts args l
|
||||
| filepath (rawledger l) == "-" = return ()
|
||||
| otherwise = do
|
||||
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
|
||||
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,
|
||||
-- prompting, validating, displaying and appending them to the ledger file.
|
||||
|
||||
@ -67,8 +67,8 @@ options = [
|
||||
,Option ['U'] ["uncleared"] (NoArg UnCleared) "report only on uncleared transactions"
|
||||
,Option ['B'] ["cost","basis"] (NoArg CostBasis) "report cost of commodities"
|
||||
,Option [] ["depth"] (ReqArg Depth "N") "hide accounts/transactions deeper than this"
|
||||
,Option ['d'] ["display"] (ReqArg Display "EXPR") ("show only transactions matching simple EXPR\n" ++
|
||||
"(where EXPR is 'dOP[DATE]', OP is <, <=, =, >=, >)")
|
||||
,Option ['d'] ["display"] (ReqArg Display "EXPR") ("show only transactions matching EXPR (where\n" ++
|
||||
"EXPR is 'dOP[DATE]' and OP is <, <=, =, >=, >)")
|
||||
,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 [] ["no-total"] (NoArg NoTotal) "balance report: hide the final total"
|
||||
|
||||
5
README
5
README
@ -55,8 +55,10 @@ results. Here are some commands to try::
|
||||
hledger reg income # transactions to/from an income account
|
||||
hledger reg checking # checking transactions
|
||||
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 web # web ui, if you installed with -f happs
|
||||
echo >new; hledger -f new add # input transactions from the command line
|
||||
|
||||
|
||||
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
|
||||
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)
|
||||
web a simple web ui
|
||||
test run self-tests
|
||||
@ -213,3 +217,4 @@ Other differences
|
||||
* hledger register report always sorts transactions by date
|
||||
* hledger doesn't show description comments as part of the description
|
||||
* hledger print puts a blank line after the entry, not before it
|
||||
* hledger doesn't print the trailing spaces after amount-elided postings
|
||||
Loading…
Reference in New Issue
Block a user