File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
hledger/Hledger/Cli/Commands Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ aregistermode = hledgerCommandMode
57
57
-- "show running average of posting amounts instead of total (implies --empty)"
58
58
-- ,flagNone ["related","r"] (setboolopt "related") "show postings' siblings instead"
59
59
,flagNone [" invert" ] (setboolopt " invert" ) " display all amounts with reversed sign"
60
- ,flagNone [ " no- header" ] (setboolopt " no- header" )
61
- " omit header row in table output "
60
+ ,flagReq [ " header" ] (\ s opts -> Right $ setopt " header" s opts) " YN "
61
+ " show header row above table: yes (default) or no "
62
62
,flagReq [" width" ," w" ] (\ s opts -> Right $ setopt " width" s opts) " N"
63
63
(" set output width (default: " ++
64
64
#ifdef mingw32_HOST_OS
@@ -219,7 +219,7 @@ accountTransactionsReportAsText copts reportq thisacctq items = TB.toLazyText $
219
219
&& not (queryIsNull $ filterQuery (not . (\ q-> queryIsDepth q || queryIsDateOrDate2 q)) reportq)
220
220
221
221
headeropt :: CliOpts -> Bool
222
- headeropt = not . boolopt " no- header" . rawopts_
222
+ headeropt = fromMaybe True . maybeynopt " header" . rawopts_
223
223
224
224
optional :: (Monoid p ) => Bool -> p -> p
225
225
optional b x = if b then x else mempty
Original file line number Diff line number Diff line change 13
13
--no-elide don't show only 2 commodities per amount
14
14
--cumulative show running total from report start date
15
15
--invert display all amounts with reversed sign
16
- --no- header omit header row in table output
16
+ --header=YN show header row above table: yes (default) or no
17
17
-w --width=N set output width (default: terminal width or
18
18
$COLUMNS). -wN,M sets description width as well.
19
19
--align-all guarantee alignment across all lines (slower)
@@ -79,7 +79,7 @@ at the cost of more time and memory, use the `--align-all` flag.
79
79
By default, ` aregister ` shows a header above the data.
80
80
However, when reporting in a language different from English,
81
81
it is easier to omit this header and prepend your own one.
82
- For this purpose, use the ` --no- header ` option.
82
+ For this purpose, use the ` --header=no ` option.
83
83
84
84
This command also supports the
85
85
[ output destination] ( hledger.html#output-destination ) and
You can’t perform that action at this time.
0 commit comments