diff --git a/hledger-ui/hledger-ui.1 b/hledger-ui/hledger-ui.1 index d1b1a3614..6ae55cd31 100644 --- a/hledger-ui/hledger-ui.1 +++ b/hledger-ui/hledger-ui.1 @@ -160,6 +160,15 @@ apply automated posting rules to modify transactions. generate future transactions from periodic transaction rules, for the next 6 months or till report end date. In hledger-ui, also make ordinary future transactions visible. +.TP +\f[B]\f[CB]--color=always|yes|never|no|auto (or --colour=...)\f[B]\f[R] +\[aq]auto\[aq] is the default, it tries to use ANSI color codes in +terminal output when supported. +\[aq]always\[aq] or \[aq]yes\[aq] forces color on, useful when piping +output, eg into \[aq]less -R\[aq]. +\[aq]never\[aq] or \[aq]no\[aq] forces color off. +A NO_COLOR environment variable also disables color, overriding this +option. .PP When a reporting option appears more than once in the command line, the last one takes precedence. diff --git a/hledger-ui/hledger-ui.info b/hledger-ui/hledger-ui.info index d4d361bb9..1999c1065 100644 --- a/hledger-ui/hledger-ui.info +++ b/hledger-ui/hledger-ui.info @@ -175,6 +175,13 @@ the data. generate future transactions from periodic transaction rules, for the next 6 months or till report end date. In hledger-ui, also make ordinary future transactions visible. +'--color=always|yes|never|no|auto (or --colour=...)' + + 'auto' is the default, it tries to use ANSI color codes in terminal + output when supported. 'always' or 'yes' forces color on, useful + when piping output, eg into 'less -R'. 'never' or 'no' forces color + off. A NO_COLOR environment variable also disables color, + overriding this option. When a reporting option appears more than once in the command line, the last one takes precedence. @@ -510,24 +517,24 @@ Tag Table: Node: Top71 Node: OPTIONS1476 Ref: #options1573 -Node: KEYS5188 -Ref: #keys5283 -Node: SCREENS9559 -Ref: #screens9664 -Node: Accounts screen9754 -Ref: #accounts-screen9882 -Node: Register screen12098 -Ref: #register-screen12253 -Node: Transaction screen14250 -Ref: #transaction-screen14408 -Node: Error screen15278 -Ref: #error-screen15400 -Node: ENVIRONMENT15644 -Ref: #environment15758 -Node: FILES16565 -Ref: #files16664 -Node: BUGS16877 -Ref: #bugs16954 +Node: KEYS5552 +Ref: #keys5647 +Node: SCREENS9923 +Ref: #screens10028 +Node: Accounts screen10118 +Ref: #accounts-screen10246 +Node: Register screen12462 +Ref: #register-screen12617 +Node: Transaction screen14614 +Ref: #transaction-screen14772 +Node: Error screen15642 +Ref: #error-screen15764 +Node: ENVIRONMENT16008 +Ref: #environment16122 +Node: FILES16929 +Ref: #files17028 +Node: BUGS17241 +Ref: #bugs17318  End Tag Table diff --git a/hledger-ui/hledger-ui.txt b/hledger-ui/hledger-ui.txt index 2e55b4370..3616bc935 100644 --- a/hledger-ui/hledger-ui.txt +++ b/hledger-ui/hledger-ui.txt @@ -158,6 +158,13 @@ OPTIONS for the next 6 months or till report end date. In hledger-ui, also make ordinary future transactions visible. + --color=always|yes|never|no|auto (or --colour=...) + 'auto' is the default, it tries to use ANSI color codes in ter- + minal output when supported. 'always' or 'yes' forces color on, + useful when piping output, eg into 'less -R'. 'never' or 'no' + forces color off. A NO_COLOR environment variable also disables + color, overriding this option. + When a reporting option appears more than once in the command line, the last one takes precedence. diff --git a/hledger-web/hledger-web.1 b/hledger-web/hledger-web.1 index 29b65cc96..aa6ef20dc 100644 --- a/hledger-web/hledger-web.1 +++ b/hledger-web/hledger-web.1 @@ -186,6 +186,15 @@ apply automated posting rules to modify transactions. generate future transactions from periodic transaction rules, for the next 6 months or till report end date. In hledger-ui, also make ordinary future transactions visible. +.TP +\f[B]\f[CB]--color=always|yes|never|no|auto (or --colour=...)\f[B]\f[R] +\[aq]auto\[aq] is the default, it tries to use ANSI color codes in +terminal output when supported. +\[aq]always\[aq] or \[aq]yes\[aq] forces color on, useful when piping +output, eg into \[aq]less -R\[aq]. +\[aq]never\[aq] or \[aq]no\[aq] forces color off. +A NO_COLOR environment variable also disables color, overriding this +option. .PP When a reporting option appears more than once in the command line, the last one takes precedence. diff --git a/hledger-web/hledger-web.info b/hledger-web/hledger-web.info index 223987dd6..e97d66c30 100644 --- a/hledger-web/hledger-web.info +++ b/hledger-web/hledger-web.info @@ -199,6 +199,13 @@ before options, as shown in the synopsis above. generate future transactions from periodic transaction rules, for the next 6 months or till report end date. In hledger-ui, also make ordinary future transactions visible. +'--color=always|yes|never|no|auto (or --colour=...)' + + 'auto' is the default, it tries to use ANSI color codes in terminal + output when supported. 'always' or 'yes' forces color on, useful + when piping output, eg into 'less -R'. 'never' or 'no' forces color + off. A NO_COLOR environment variable also disables color, + overriding this option. When a reporting option appears more than once in the command line, the last one takes precedence. @@ -575,20 +582,20 @@ Tag Table: Node: Top72 Node: OPTIONS1752 Ref: #options1857 -Node: PERMISSIONS8385 -Ref: #permissions8524 -Node: EDITING UPLOADING DOWNLOADING9736 -Ref: #editing-uploading-downloading9917 -Node: RELOADING10751 -Ref: #reloading10885 -Node: JSON API11318 -Ref: #json-api11432 -Node: ENVIRONMENT16913 -Ref: #environment17029 -Node: FILES17762 -Ref: #files17862 -Node: BUGS18075 -Ref: #bugs18153 +Node: PERMISSIONS8749 +Ref: #permissions8888 +Node: EDITING UPLOADING DOWNLOADING10100 +Ref: #editing-uploading-downloading10281 +Node: RELOADING11115 +Ref: #reloading11249 +Node: JSON API11682 +Ref: #json-api11796 +Node: ENVIRONMENT17277 +Ref: #environment17393 +Node: FILES18126 +Ref: #files18226 +Node: BUGS18439 +Ref: #bugs18517  End Tag Table diff --git a/hledger-web/hledger-web.txt b/hledger-web/hledger-web.txt index d1300b16b..f4b3e5b0f 100644 --- a/hledger-web/hledger-web.txt +++ b/hledger-web/hledger-web.txt @@ -179,6 +179,13 @@ OPTIONS for the next 6 months or till report end date. In hledger-ui, also make ordinary future transactions visible. + --color=always|yes|never|no|auto (or --colour=...) + 'auto' is the default, it tries to use ANSI color codes in ter- + minal output when supported. 'always' or 'yes' forces color on, + useful when piping output, eg into 'less -R'. 'never' or 'no' + forces color off. A NO_COLOR environment variable also disables + color, overriding this option. + When a reporting option appears more than once in the command line, the last one takes precedence. diff --git a/hledger/hledger.1 b/hledger/hledger.1 index 53f05c943..de3653e4d 100644 --- a/hledger/hledger.1 +++ b/hledger/hledger.1 @@ -638,6 +638,15 @@ apply automated posting rules to modify transactions. generate future transactions from periodic transaction rules, for the next 6 months or till report end date. In hledger-ui, also make ordinary future transactions visible. +.TP +\f[B]\f[CB]--color=always|yes|never|no|auto (or --colour=...)\f[B]\f[R] +\[aq]auto\[aq] is the default, it tries to use ANSI color codes in +terminal output when supported. +\[aq]always\[aq] or \[aq]yes\[aq] forces color on, useful when piping +output, eg into \[aq]less -R\[aq]. +\[aq]never\[aq] or \[aq]no\[aq] forces color off. +A NO_COLOR environment variable also disables color, overriding this +option. .PP When a reporting option appears more than once in the command line, the last one takes precedence. diff --git a/hledger/hledger.info b/hledger/hledger.info index b359520eb..18e86a0e4 100644 --- a/hledger/hledger.info +++ b/hledger/hledger.info @@ -633,6 +633,13 @@ by most hledger commands, run 'hledger -h'. generate future transactions from periodic transaction rules, for the next 6 months or till report end date. In hledger-ui, also make ordinary future transactions visible. +'--color=always|yes|never|no|auto (or --colour=...)' + + 'auto' is the default, it tries to use ANSI color codes in terminal + output when supported. 'always' or 'yes' forces color on, useful + when piping output, eg into 'less -R'. 'never' or 'no' forces color + off. A NO_COLOR environment variable also disables color, + overriding this option. When a reporting option appears more than once in the command line, the last one takes precedence. @@ -4047,182 +4054,182 @@ Node: OPTIONS16859 Ref: #options16966 Node: General options17336 Ref: #general-options17461 -Node: Command options20415 -Ref: #command-options20566 -Node: Command arguments20964 -Ref: #command-arguments21111 -Node: Queries21991 -Ref: #queries22146 -Node: Special characters in arguments and queries26108 -Ref: #special-characters-in-arguments-and-queries26336 -Node: More escaping26787 -Ref: #more-escaping26949 -Node: Even more escaping27245 -Ref: #even-more-escaping27439 -Node: Less escaping28110 -Ref: #less-escaping28272 -Node: Unicode characters28517 -Ref: #unicode-characters28699 -Node: Input files30111 -Ref: #input-files30254 -Node: Output destination32183 -Ref: #output-destination32335 -Node: Output format32760 -Ref: #output-format32910 -Node: Regular expressions35077 -Ref: #regular-expressions35234 -Node: Smart dates36970 -Ref: #smart-dates37121 -Node: Report start & end date38482 -Ref: #report-start-end-date38654 -Node: Report intervals40151 -Ref: #report-intervals40316 -Node: Period expressions40706 -Ref: #period-expressions40866 -Node: Depth limiting45017 -Ref: #depth-limiting45161 -Node: Pivoting45493 -Ref: #pivoting45616 -Node: Valuation47292 -Ref: #valuation47394 -Node: -B Cost48083 -Ref: #b-cost48187 -Node: -V Value48320 -Ref: #v-value48466 -Node: -X Value in specified commodity48661 -Ref: #x-value-in-specified-commodity48860 -Node: Valuation date49009 -Ref: #valuation-date49177 -Node: Market prices49587 -Ref: #market-prices49767 -Node: --infer-value market prices from transactions50544 -Ref: #infer-value-market-prices-from-transactions50793 -Node: Valuation commodity52075 -Ref: #valuation-commodity52284 -Node: Simple valuation examples53510 -Ref: #simple-valuation-examples53712 -Node: --value Flexible valuation54371 -Ref: #value-flexible-valuation54579 -Node: More valuation examples56526 -Ref: #more-valuation-examples56735 -Node: Effect of valuation on reports58740 -Ref: #effect-of-valuation-on-reports58928 -Node: COMMANDS64449 -Ref: #commands64557 -Node: accounts65665 -Ref: #accounts65763 -Node: activity66462 -Ref: #activity66572 -Node: add66955 -Ref: #add67056 -Node: aregister69849 -Ref: #aregister69961 -Node: aregister and custom posting dates71334 -Ref: #aregister-and-custom-posting-dates71507 -Ref: #output-format-172100 -Node: balance72505 -Ref: #balance72622 -Node: Classic balance report74080 -Ref: #classic-balance-report74253 -Node: Customising the classic balance report75687 -Ref: #customising-the-classic-balance-report75915 -Node: Colour support77991 -Ref: #colour-support78158 -Node: Flat mode78254 -Ref: #flat-mode78402 -Node: Depth limited balance reports78815 -Ref: #depth-limited-balance-reports79000 -Node: Percentages79456 -Ref: #percentages79622 -Node: Multicolumn balance report80759 -Ref: #multicolumn-balance-report80939 -Node: Budget report86536 -Ref: #budget-report86679 -Node: Nested budgets91945 -Ref: #nested-budgets92057 -Ref: #output-format-295538 -Node: balancesheet95735 -Ref: #balancesheet95871 -Node: balancesheetequity97337 -Ref: #balancesheetequity97486 -Node: cashflow98209 -Ref: #cashflow98337 -Node: check-dates99516 -Ref: #check-dates99643 -Node: check-dupes99922 -Ref: #check-dupes100048 -Node: close100341 -Ref: #close100449 -Node: close usage101971 -Ref: #close-usage102064 -Node: codes104877 -Ref: #codes104985 -Node: commodities105697 -Ref: #commodities105824 -Node: descriptions105906 -Ref: #descriptions106034 -Node: diff106338 -Ref: #diff106444 -Node: files107491 -Ref: #files107591 -Node: help107738 -Ref: #help107838 -Node: import108919 -Ref: #import109033 -Node: Importing balance assignments109926 -Ref: #importing-balance-assignments110074 -Node: incomestatement110723 -Ref: #incomestatement110856 -Node: notes112343 -Ref: #notes112456 -Node: payees112824 -Ref: #payees112930 -Node: prices113350 -Ref: #prices113456 -Node: print113797 -Ref: #print113907 -Node: print-unique118703 -Ref: #print-unique118829 -Node: register119114 -Ref: #register119241 -Node: Custom register output123413 -Ref: #custom-register-output123542 -Node: register-match124879 -Ref: #register-match125013 -Node: rewrite125364 -Ref: #rewrite125479 -Node: Re-write rules in a file127334 -Ref: #re-write-rules-in-a-file127468 -Node: Diff output format128678 -Ref: #diff-output-format128847 -Node: rewrite vs print --auto129939 -Ref: #rewrite-vs.-print---auto130118 -Node: roi130674 -Ref: #roi130772 -Node: stats131784 -Ref: #stats131883 -Node: tags132671 -Ref: #tags132769 -Node: test133288 -Ref: #test133396 -Node: Add-on commands134143 -Ref: #add-on-commands134260 -Node: ui135603 -Ref: #ui135691 -Node: web135745 -Ref: #web135848 -Node: iadd135964 -Ref: #iadd136075 -Node: interest136157 -Ref: #interest136264 -Node: ENVIRONMENT136504 -Ref: #environment136616 -Node: FILES137601 -Ref: #files-1137704 -Node: LIMITATIONS137917 -Ref: #limitations138036 -Node: TROUBLESHOOTING138778 -Ref: #troubleshooting138891 +Node: Command options20779 +Ref: #command-options20930 +Node: Command arguments21328 +Ref: #command-arguments21475 +Node: Queries22355 +Ref: #queries22510 +Node: Special characters in arguments and queries26472 +Ref: #special-characters-in-arguments-and-queries26700 +Node: More escaping27151 +Ref: #more-escaping27313 +Node: Even more escaping27609 +Ref: #even-more-escaping27803 +Node: Less escaping28474 +Ref: #less-escaping28636 +Node: Unicode characters28881 +Ref: #unicode-characters29063 +Node: Input files30475 +Ref: #input-files30618 +Node: Output destination32547 +Ref: #output-destination32699 +Node: Output format33124 +Ref: #output-format33274 +Node: Regular expressions35441 +Ref: #regular-expressions35598 +Node: Smart dates37334 +Ref: #smart-dates37485 +Node: Report start & end date38846 +Ref: #report-start-end-date39018 +Node: Report intervals40515 +Ref: #report-intervals40680 +Node: Period expressions41070 +Ref: #period-expressions41230 +Node: Depth limiting45381 +Ref: #depth-limiting45525 +Node: Pivoting45857 +Ref: #pivoting45980 +Node: Valuation47656 +Ref: #valuation47758 +Node: -B Cost48447 +Ref: #b-cost48551 +Node: -V Value48684 +Ref: #v-value48830 +Node: -X Value in specified commodity49025 +Ref: #x-value-in-specified-commodity49224 +Node: Valuation date49373 +Ref: #valuation-date49541 +Node: Market prices49951 +Ref: #market-prices50131 +Node: --infer-value market prices from transactions50908 +Ref: #infer-value-market-prices-from-transactions51157 +Node: Valuation commodity52439 +Ref: #valuation-commodity52648 +Node: Simple valuation examples53874 +Ref: #simple-valuation-examples54076 +Node: --value Flexible valuation54735 +Ref: #value-flexible-valuation54943 +Node: More valuation examples56890 +Ref: #more-valuation-examples57099 +Node: Effect of valuation on reports59104 +Ref: #effect-of-valuation-on-reports59292 +Node: COMMANDS64813 +Ref: #commands64921 +Node: accounts66029 +Ref: #accounts66127 +Node: activity66826 +Ref: #activity66936 +Node: add67319 +Ref: #add67420 +Node: aregister70213 +Ref: #aregister70325 +Node: aregister and custom posting dates71698 +Ref: #aregister-and-custom-posting-dates71871 +Ref: #output-format-172464 +Node: balance72869 +Ref: #balance72986 +Node: Classic balance report74444 +Ref: #classic-balance-report74617 +Node: Customising the classic balance report76051 +Ref: #customising-the-classic-balance-report76279 +Node: Colour support78355 +Ref: #colour-support78522 +Node: Flat mode78618 +Ref: #flat-mode78766 +Node: Depth limited balance reports79179 +Ref: #depth-limited-balance-reports79364 +Node: Percentages79820 +Ref: #percentages79986 +Node: Multicolumn balance report81123 +Ref: #multicolumn-balance-report81303 +Node: Budget report86900 +Ref: #budget-report87043 +Node: Nested budgets92309 +Ref: #nested-budgets92421 +Ref: #output-format-295902 +Node: balancesheet96099 +Ref: #balancesheet96235 +Node: balancesheetequity97701 +Ref: #balancesheetequity97850 +Node: cashflow98573 +Ref: #cashflow98701 +Node: check-dates99880 +Ref: #check-dates100007 +Node: check-dupes100286 +Ref: #check-dupes100412 +Node: close100705 +Ref: #close100813 +Node: close usage102335 +Ref: #close-usage102428 +Node: codes105241 +Ref: #codes105349 +Node: commodities106061 +Ref: #commodities106188 +Node: descriptions106270 +Ref: #descriptions106398 +Node: diff106702 +Ref: #diff106808 +Node: files107855 +Ref: #files107955 +Node: help108102 +Ref: #help108202 +Node: import109283 +Ref: #import109397 +Node: Importing balance assignments110290 +Ref: #importing-balance-assignments110438 +Node: incomestatement111087 +Ref: #incomestatement111220 +Node: notes112707 +Ref: #notes112820 +Node: payees113188 +Ref: #payees113294 +Node: prices113714 +Ref: #prices113820 +Node: print114161 +Ref: #print114271 +Node: print-unique119067 +Ref: #print-unique119193 +Node: register119478 +Ref: #register119605 +Node: Custom register output123777 +Ref: #custom-register-output123906 +Node: register-match125243 +Ref: #register-match125377 +Node: rewrite125728 +Ref: #rewrite125843 +Node: Re-write rules in a file127698 +Ref: #re-write-rules-in-a-file127832 +Node: Diff output format129042 +Ref: #diff-output-format129211 +Node: rewrite vs print --auto130303 +Ref: #rewrite-vs.-print---auto130482 +Node: roi131038 +Ref: #roi131136 +Node: stats132148 +Ref: #stats132247 +Node: tags133035 +Ref: #tags133133 +Node: test133652 +Ref: #test133760 +Node: Add-on commands134507 +Ref: #add-on-commands134624 +Node: ui135967 +Ref: #ui136055 +Node: web136109 +Ref: #web136212 +Node: iadd136328 +Ref: #iadd136439 +Node: interest136521 +Ref: #interest136628 +Node: ENVIRONMENT136868 +Ref: #environment136980 +Node: FILES137965 +Ref: #files-1138068 +Node: LIMITATIONS138281 +Ref: #limitations138400 +Node: TROUBLESHOOTING139142 +Ref: #troubleshooting139255  End Tag Table diff --git a/hledger/hledger.txt b/hledger/hledger.txt index eeb34e471..df1542413 100644 --- a/hledger/hledger.txt +++ b/hledger/hledger.txt @@ -538,6 +538,13 @@ OPTIONS for the next 6 months or till report end date. In hledger-ui, also make ordinary future transactions visible. + --color=always|yes|never|no|auto (or --colour=...) + 'auto' is the default, it tries to use ANSI color codes in ter- + minal output when supported. 'always' or 'yes' forces color on, + useful when piping output, eg into 'less -R'. 'never' or 'no' + forces color off. A NO_COLOR environment variable also disables + color, overriding this option. + When a reporting option appears more than once in the command line, the last one takes precedence. @@ -1007,7 +1014,6 @@ OPTIONS -b 2016/3/17 begin on St. Patrick's day 2016 -e 12/1 end at the start of december 1st of the current year (11/30 will be the last date included) - -b thismonth all transactions on or after the 1st of the current month -p thismonth all transactions in the current month date:2016/3/17.. the above written as queries instead (.. can also be re- @@ -1064,6 +1070,8 @@ OPTIONS -p "2009" the year 2009; equivalent to "2009/1/1 to 2010/1/1" + + -p "2009/1" the month of jan; equiva- lent to "2009/1/1 to 2009/2/1" @@ -1550,6 +1558,9 @@ OPTIONS (with report costs riod ends of riod ends of DATE/today of interval) sums of sums of sums of post- postings postings ings + + + starting sums of sums of not supported sums of sums of post- balances costs of postings be- postings be- ings before (with report postings be- fore report fore report report start @@ -1561,10 +1572,6 @@ OPTIONS grand total sum of dis- sum of dis- not supported sum of dis- sum of dis- (no report played val- played val- played val- played values interval) ues ues ues - - - - row to- sums/aver- sums/aver- not supported sums/aver- sums/averages tals/aver- ages of dis- ages of dis- ages of dis- of displayed ages (with played val- played val- played val- values