;bin: remove obsolete _FLAGS marker from help

This commit is contained in:
Simon Michael 2024-12-07 08:51:44 -10:00
parent 43dd0cfc5d
commit 895a52b745
7 changed files with 5 additions and 20 deletions

View File

@ -26,8 +26,6 @@ cmdmode :: Mode RawOpts
cmdmode = hledgerCommandMode
[s| check-postable
Check that no postings are made to accounts with a postable:(n|no) tag.
_FLAGS
|]
[]
[generalflagsgroup1]

View File

@ -44,8 +44,7 @@ import Hledger.Cli.Script
------------------------------------------------------------------------------
cmdmode = hledgerCommandMode
-- Command name and help text goes here. Current limitations:
-- help text must be above _FLAGS, blank lines will not be displayed.
-- Command name and help text goes here. Note blank lines will not be displayed.
[s| hledger-move
Print an entry to move funds between accounts, preserving costs and subaccounts
.
@ -82,8 +81,6 @@ Examples:
.
$ hledger-move $50 assets:checking assets:cash # withdraw cash from bank
$ hledger-move ADA1000 ada:wallet1 ada:wallet2 # move 1000 ADA, keeping lots
_FLAGS
|]
{- NOT YET IMPLEMENTED:

View File

@ -26,7 +26,6 @@ import Hledger.Cli.Script
cmdmode = hledgerCommandMode
[s| print-location
Like print, but adds tags showing the file path and location of transactions.
_FLAGS
|]
[]
[generalflagsgroup1]

View File

@ -15,7 +15,7 @@ import qualified "text" Data.Text as T
import qualified "text" Data.Text.IO as T
cmdmode = hledgerCommandMode (unlines
-- Command name, then --help text, then _FLAGS; empty help lines get stripped:
-- Command name, then --help text. Note, empty help lines get stripped.
["register-match"
,"Show the register item(s) with maximum (or with --invert, minimum) balance."
,"Usage: hledger-register-max [REGISTERARGS]"
@ -25,8 +25,6 @@ cmdmode = hledgerCommandMode (unlines
,"$ hledger-register-max -f examples/bcexample.hledger -H checking"
,"2013-01-03 Payroll Assets:US:BofA:Checking 1350.60 USD 8799.22 USD"
------------------------------------78----------------------------------------
,""
,"_FLAGS"
])
[] [generalflagsgroup1] [] ([], Just $ argsFlag "[ARGS]") -- or Nothing

View File

@ -28,7 +28,7 @@ import qualified "text" Data.Text as T
import qualified "text" Data.Text.IO as T
cmdmode = hledgerCommandMode (unlines
-- Command name, then --help text, then _FLAGS; empty help lines get stripped:
-- Command name, then --help text. Note, empty help lines get stripped.
["script-example"
,"This is an example of a (hledger-lib-using) hledger script."
,"Usage: hledger-script-example [OPTS] [ARGS]"
@ -39,8 +39,6 @@ cmdmode = hledgerCommandMode (unlines
,"$ hledger-script-example --help"
,"(this help)"
------------------------------------78----------------------------------------
,""
,"_FLAGS"
])
[] [generalflagsgroup1] [] ([], Just $ argsFlag "[ARGS]") -- or Nothing
@ -89,8 +87,8 @@ main = do
-- Using [s|...|] for multiline string literals (requires string-qq package and {-# LANGUAGE QuasiQuotes #-}):
-- cmdmode = hledgerCommandMode (unlines
-- -- Command name, then --help text, then _FLAGS; empty help lines get stripped:
-- [s| script-example
-- -- Command name, then --help text. Note, empty help lines get stripped.
-- [s| script-example
-- This is an example of a (hledger-lib-using) hledger script."
-- Usage: hledger-script-example [OPTS] [ARGS]"
-- or: hledger script-example -- [OPTS] [ARGS]"
@ -99,8 +97,6 @@ main = do
-- Examples:"
-- $ hledger-script-example --help"
-- (this help)"
--
-- _FLAGS
-- |]
-- ------------------------------------78----------------------------------------
-- [] [generalflagsgroup1] [] ([], Just $ argsFlag "[ARGS]") -- or Nothing

View File

@ -43,8 +43,6 @@ It can differ from the others.
Useful for preprocessing a journal to smooth out irregular revenues or
expenses in daily/weekly/monthly reports, eg:
hledger smooth revenues:consulting | hledger -f- incomestatement -W
_FLAGS
|]
[]
[generalflagsgroup1]

View File

@ -18,7 +18,6 @@ cmdmode = hledgerCommandMode
[s| swap-dates
Swap date and date2, on transactions which have date2 defined.
(Does not yet swap posting dates.)
_FLAGS
|]
[]
[generalflagsgroup1]