alias docs fixes

This commit is contained in:
Simon Michael 2011-08-05 00:40:57 +00:00
parent 957c349780
commit 13acc458e1
2 changed files with 4 additions and 5 deletions

View File

@ -153,6 +153,7 @@ Some of these are discussed more in [other features](#other-features):
-C --cleared report only on cleared transactions -C --cleared report only on cleared transactions
-U --uncleared report only on uncleared transactions -U --uncleared report only on uncleared transactions
-B --cost, --basis report cost of commodities -B --cost, --basis report cost of commodities
--alias=ACCT=ALIAS display ACCT's name as ALIAS in reports
--depth=N hide accounts/transactions deeper than this --depth=N hide accounts/transactions deeper than this
-d EXPR --display=EXPR show only transactions matching EXPR (where -d EXPR --display=EXPR show only transactions matching EXPR (where
EXPR is 'dOP[DATE]' and OP is <, <=, =, >=, >) EXPR is 'dOP[DATE]' and OP is <, <=, =, >=, >)
@ -488,9 +489,7 @@ to each account name.
Aliases tend to be a little more reliable than post-processing with sed or Aliases tend to be a little more reliable than post-processing with sed or
similar, as they know about account name syntax, posting type indicators similar, as they know about account name syntax, posting type indicators
etc. Note aliases only change the displayed names, not the account etc.
hierarchy - aliasing two accounts to the same name does not merge them
into one account.
## Core commands ## Core commands

View File

@ -62,7 +62,6 @@ options_cli :: [OptDescr Opt]
options_cli = [ options_cli = [
Option "f" ["file"] (ReqArg File "FILE") "use a different journal/timelog file; - means stdin" Option "f" ["file"] (ReqArg File "FILE") "use a different journal/timelog file; - means stdin"
,Option "" ["no-new-accounts"] (NoArg NoNewAccts) "don't allow to create new accounts" ,Option "" ["no-new-accounts"] (NoArg NoNewAccts) "don't allow to create new accounts"
,Option "" ["alias"] (ReqArg Alias "ACCT=ALIAS") "display ACCT's name as ALIAS instead"
,Option "b" ["begin"] (ReqArg Begin "DATE") "report on transactions on or after this date" ,Option "b" ["begin"] (ReqArg Begin "DATE") "report on transactions on or after this date"
,Option "e" ["end"] (ReqArg End "DATE") "report on transactions before this date" ,Option "e" ["end"] (ReqArg End "DATE") "report on transactions before this date"
,Option "p" ["period"] (ReqArg Period "EXPR") ("report on transactions during the specified period\n" ++ ,Option "p" ["period"] (ReqArg Period "EXPR") ("report on transactions during the specified period\n" ++
@ -70,6 +69,7 @@ options_cli = [
,Option "C" ["cleared"] (NoArg Cleared) "report only on cleared transactions" ,Option "C" ["cleared"] (NoArg Cleared) "report only on cleared transactions"
,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 "" ["alias"] (ReqArg Alias "ACCT=ALIAS") "display ACCT's name as ALIAS in reports"
,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 EXPR (where\n" ++ ,Option "d" ["display"] (ReqArg Display "EXPR") ("show only transactions matching EXPR (where\n" ++
"EXPR is 'dOP[DATE]' and OP is <, <=, =, >=, >)") "EXPR is 'dOP[DATE]' and OP is <, <=, =, >=, >)")
@ -97,13 +97,13 @@ options_cli = [
data Opt = data Opt =
File {value::String} File {value::String}
| NoNewAccts | NoNewAccts
| Alias {value::String}
| Begin {value::String} | Begin {value::String}
| End {value::String} | End {value::String}
| Period {value::String} | Period {value::String}
| Cleared | Cleared
| UnCleared | UnCleared
| CostBasis | CostBasis
| Alias {value::String}
| Depth {value::String} | Depth {value::String}
| Display {value::String} | Display {value::String}
| Effective | Effective