Simon Michael
ba786752d1
imp 📟 add a --no-pager general flag
2024-10-19 16:28:36 -10:00
Henning Thielemann
0e158d0c3e
cli: lib: Hledger.Write.Ods: basic support for FODS export
...
used in Commands.Balance
2024-08-16 16:57:38 +02:00
Simon Michael
6f3c4c9bf0
fix: cli: accept --conf with no command
2024-07-12 15:41:53 +01:00
Simon Michael
85480a7572
fix: cli: move pre-command --debug option more carefully; cleanup
2024-07-12 15:23:03 +01:00
Simon Michael
65ac41e155
fix: cli: move flags with shadowed names, like -p, more carefully
2024-07-06 17:12:08 +01:00
Simon Michael
2ab8ac31f4
fix: cli: more cli parsing fixes; debug output improvements
2024-07-01 22:50:44 +01:00
Simon Michael
6aa1bbc18a
;doc: --debug help tweak
2024-06-26 23:24:41 +01:00
Simon Michael
40620666f8
imp: cli: rename --rules-file to --rules; tweak options help
...
For brevity, and consistency with --conf.
--rules-file remains supported, as a hidden option.
hledger's main mode now supports the hidden legacy flags,
as the command modes do.
2024-06-25 18:37:55 +01:00
Simon Michael
5739bff249
imp: config file: --conf, --no-conf/-n, improve debug output
2024-06-25 18:37:55 +01:00
Simon Michael
361b0016ff
fix: cli: ensureDebugFlagHasVal: fix multiple --debug flags not just one
2024-06-25 18:37:55 +01:00
Simon Michael
6c294e91d6
fix: ui, web: accept valueless --debug flag again
2024-06-25 18:37:55 +01:00
Simon Michael
3797fe13d3
imp: move --debug to help flags, making it more universal
2024-06-25 18:37:54 +01:00
Simon Michael
e1991be46f
feat: config file: add a real parser, support command-specific options
2024-06-25 18:37:54 +01:00
Simon Michael
570a5472e2
dev: cli: refactor/clarify main procedure and command line processing
2024-06-25 18:37:54 +01:00
Simon Michael
c787286844
imp: doc: show flags help in manuals
...
Each CMD.md file now contains a snapshot of the flags help as rendered
by --help. For now these must be updated manually.
2024-06-07 06:55:33 -07:00
Simon Michael
0ccfc78844
;dev: cleanup
2024-06-07 06:32:52 -07:00
Simon Michael
311be367b0
;doc: cli: simplify, use generic help flags again
2024-05-31 19:54:18 -10:00
Simon Michael
7f583a8414
;doc: correction, NO_COLOR does not override --color=yes
2024-05-31 18:16:33 -10:00
Simon Michael
9d53698eab
;imp: cli: also mention 'y' and 'n' in help
2024-05-29 16:12:44 -10:00
Simon Michael
7d0e605bc3
;imp: cli: improve --debug's help
2024-05-29 16:09:53 -10:00
Simon Michael
c5f8444627
feat: hledger's tldr pages are now built in, accessible via --tldr
...
And a few cleanups/fixes related to flag processing.
The help flags are now listed in order of precedence.
2024-05-29 15:32:19 -10:00
Simon Michael
c35eed5506
imp: cli: fix help headings highlighting
2024-05-29 14:45:04 -10:00
Simon Michael
085910708b
imp: help: add standard help and (hidden) --debug flags
2024-05-29 09:37:20 -10:00
Simon Michael
f88aa8f871
imp: cli: --info before --man
2024-05-29 09:37:20 -10:00
Simon Michael
ffb52e3032
imp: cli: refactor, reorg, update general flags
2024-05-28 23:44:29 -10:00
Simon Michael
235cb3d8e2
fix:pkg: fix a build error with ghc 8.10 [ #2198 ]
2024-05-17 14:48:32 -10:00
Simon Michael
b7e5c05da2
imp: -I can now be overridden by -s or the check command
...
This enables a "relaxed" workflow where you delay balance assertions
checking until strict mode is turned on: always run hledger -I, and
add -s when you're ready.
2024-05-07 15:44:06 -10:00
Simon Michael
d17b32c7eb
imp: cli,ui,web: support ghc-debug for analysing memory/profile info
...
When built with the ghcdebug flag and started with --debug=-1 (or -2
to pause at startup, or -3 to pause before exit), hledger can be
controlled by ghc-debug clients like ghc-debug-brick or a custom
ghc-debug query script.
Also, refactor version string code.
2024-05-01 13:43:04 -10:00
Simon Michael
d755699c9b
imp:stats: also show RTS memory usage stats
2024-02-29 01:07:04 -10:00
Simon Michael
8f1ae401f4
dev: fix some partial head/tails, silence ghc 9.8's new warnings
...
Note the headErr/tailErr calls will print stack traces if they fail
(small ones: five lines, one of which is the useful location info),
which may or may not be best UX.
2024-02-28 15:58:21 -10:00
Michael Rees
d4ecdb3fea
imp: Support tsv and ssv prefixes ( #2164 )
2024-02-08 06:44:44 -10:00
Simon Michael
41711d8ab5
fix:--anon: now hidden, gives an error, still usable as --obfuscate [ #2133 ]
2024-01-21 11:59:11 -10:00
Simon Michael
e2cc2d7e24
feat:print: add a basic beancount output format
...
This prints journal output more likely (but not guaranteed) to
be readable by Beancount.
All packages now require text 1.2.4.1 or greater.
2023-11-22 22:57:36 -10:00
Simon Michael
606d99834a
fix: -o/--outputfile with a .json or .sql extension now selects those formats
2023-11-22 19:25:37 -10:00
Peter Sagerson
efcea0600a
feat: cli: Add tsv output ( #869 )
...
All commands that suport csv output now also support tsv output. The
data is identical, but the fields are separated by tab characters and
there is no quoting or escaping. Tab, carriage return, and newline
characters in data are converted to spaces (this should rarely if ever
happen in practice).
2023-11-06 16:46:04 -08:00
Simon Michael
9cdc0f21b6
imp:cli: add-ons can also have .js, .lua, or .php extensions
2023-05-30 20:23:12 -10:00
Simon Michael
96cdc0cb96
fix: likelyExecutablesInPath, hledgerExecutablesInPath on windows ( #2040 )
...
Pointed out by mauke in #haskell chat: this was incorrectly splitting
PATH on windows (splitting on the : in C:\...), which meant that
people using multiple drive letters on Windows might see hledger
failing to recognise installed add-on commands.
2023-05-27 12:28:38 -10:00
Simon Michael
a12880de05
fix: typo in Hledger.Cli.CliOptions.likelyExecutablesInPath
...
This had a bug noticed by mauke in #haskell: it was splitting PATH
on [ and ] as well as : and ;. Hard to trigger, but now fixed.
2023-05-27 09:21:49 -10:00
Simon Michael
147d49c66c
dev: cln: drop Hledger.Data.RawOptions.inRawOpts
2023-05-09 10:02:24 -10:00
Simon Michael
7f713f6a44
imp: Generated/modified txns/postings are now tagged only with --verbose-tags
2023-04-29 18:25:11 -10:00
Simon Michael
ca42b0aaca
imp: cli: clean up some flags' help and sync docs
2023-04-29 18:11:53 -10:00
Simon Michael
1be06c87c4
feat: bal: A new --count report type counts postings instead of amounts.
2023-04-20 14:36:41 -10:00
Simon Michael
0567935e4b
cli: simplify command doc inclusion, give them normal heading structure
2023-02-20 16:24:54 -10:00
Simon Michael
fa70f160ae
imp: partial/inferred dates are flexible, full dates are not ( #1982 )
...
DateSpans are now now aware of exact/flexible dates.
2023-02-17 07:24:19 -10:00
Simon Michael
eed8a06906
fix: cli: don't highlight help when TERM=dumb
2023-01-27 06:06:17 -10:00
Simon Michael
72cd441a9f
imp: cli: add a little highlighting to help output
2023-01-25 19:16:09 -10:00
Simon Michael
e891eecb8b
dev: add TypeOperators pragma to satisfy ghc 9.4
2023-01-10 19:33:31 -10:00
Simon Michael
1ea2c41bf7
imp: lib: registerWidthsFromOpts: fix ugly parse error message
2023-01-10 17:07:54 -10:00
Simon Michael
5c289ac92e
lib: drop unused widthFromOpts
2023-01-10 17:07:19 -10:00
Simon Michael
c25c5cef44
fix: make no-argument --debug flag work with ui & web also
2022-11-03 08:13:58 -10:00