From 719638fa2ff13f65134c1d1bf07827ed17796eb3 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 1 Dec 2009 15:13:13 +0000 Subject: [PATCH] docs: move convert docs out of haddock --- Commands/Convert.hs | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/Commands/Convert.hs b/Commands/Convert.hs index de3c2ece7..da3a3e1d2 100644 --- a/Commands/Convert.hs +++ b/Commands/Convert.hs @@ -1,38 +1,7 @@ {-| Convert account data in CSV format (eg downloaded from a bank) to ledger -format, and print it on stdout. - -Usage: hledger convert CSVFILE ACCOUNTNAME RULESFILE - -ACCOUNTNAME is the base account to use for transactions. RULESFILE -provides some rules to help convert the data. - -- It should contain paragraphs separated by one blank line. - -- The first paragraph is a single line of four comma-separated fields, - which are numbers indicating the (0-based) csv field positions - corresponding to the transaction date, code/number, description, and amount. - If a field does not exist in the csv, use - to specify a default value. - -- All other paragraphs specify one or more regular expressions, followed - by the ledger account to use when a transaction's description matches - any of them. A regexp may optionally have a replacement pattern - specified after =. - -Here's an example rules file: - -> 0,-,4,1 -> -> SPECTRUM -> expenses:health:gym -> -> ITUNES -> BLKBSTR=BLOCKBUSTER -> expenses:entertainment -> -> (TO|FROM) SAVINGS -> assets:bank:savings +format, and print it on stdout. See the manual for more details. -}