Fix regular expression in output-options.sh
Match only lines starting with white space because there are a lot of option like strings in the discussion section that follows that are not necessarily what we are after.
This commit is contained in:
parent
40a7549013
commit
a5ccae8f31
@ -479,9 +479,7 @@ read -r -d "" _hledger_complist_options_accounts <<TEXT
|
|||||||
--date2
|
--date2
|
||||||
--debug=
|
--debug=
|
||||||
--declared
|
--declared
|
||||||
--depth
|
|
||||||
--depth=
|
--depth=
|
||||||
--drop
|
|
||||||
--drop=
|
--drop=
|
||||||
--empty
|
--empty
|
||||||
--end=
|
--end=
|
||||||
@ -651,16 +649,13 @@ read -r -d "" _hledger_complist_options_bal <<TEXT
|
|||||||
--budget
|
--budget
|
||||||
--change
|
--change
|
||||||
--cleared
|
--cleared
|
||||||
--color=
|
|
||||||
--colour
|
--colour
|
||||||
--cost
|
--cost
|
||||||
--cumulative
|
--cumulative
|
||||||
--daily
|
--daily
|
||||||
--date2
|
--date2
|
||||||
--debug=
|
--debug=
|
||||||
--depth
|
|
||||||
--depth=
|
--depth=
|
||||||
--drop
|
|
||||||
--drop=
|
--drop=
|
||||||
--empty
|
--empty
|
||||||
--end=
|
--end=
|
||||||
@ -668,7 +663,6 @@ read -r -d "" _hledger_complist_options_bal <<TEXT
|
|||||||
--file=
|
--file=
|
||||||
--flat
|
--flat
|
||||||
--forecast
|
--forecast
|
||||||
--format
|
|
||||||
--format=
|
--format=
|
||||||
--help
|
--help
|
||||||
--historical
|
--historical
|
||||||
@ -711,16 +705,13 @@ read -r -d "" _hledger_complist_options_balance <<TEXT
|
|||||||
--budget
|
--budget
|
||||||
--change
|
--change
|
||||||
--cleared
|
--cleared
|
||||||
--color=
|
|
||||||
--colour
|
--colour
|
||||||
--cost
|
--cost
|
||||||
--cumulative
|
--cumulative
|
||||||
--daily
|
--daily
|
||||||
--date2
|
--date2
|
||||||
--debug=
|
--debug=
|
||||||
--depth
|
|
||||||
--depth=
|
--depth=
|
||||||
--drop
|
|
||||||
--drop=
|
--drop=
|
||||||
--empty
|
--empty
|
||||||
--end=
|
--end=
|
||||||
@ -728,7 +719,6 @@ read -r -d "" _hledger_complist_options_balance <<TEXT
|
|||||||
--file=
|
--file=
|
||||||
--flat
|
--flat
|
||||||
--forecast
|
--forecast
|
||||||
--format
|
|
||||||
--format=
|
--format=
|
||||||
--help
|
--help
|
||||||
--historical
|
--historical
|
||||||
@ -1154,7 +1144,6 @@ read -r -d "" _hledger_complist_options_close <<TEXT
|
|||||||
--cleared
|
--cleared
|
||||||
--close
|
--close
|
||||||
--close-acct=
|
--close-acct=
|
||||||
--close-desc
|
|
||||||
--close-desc=
|
--close-desc=
|
||||||
--colour
|
--colour
|
||||||
--cost
|
--cost
|
||||||
@ -1175,9 +1164,7 @@ read -r -d "" _hledger_complist_options_close <<TEXT
|
|||||||
--market
|
--market
|
||||||
--monthly
|
--monthly
|
||||||
--open
|
--open
|
||||||
--open-acct
|
|
||||||
--open-acct=
|
--open-acct=
|
||||||
--open-desc
|
|
||||||
--open-desc=
|
--open-desc=
|
||||||
--pending
|
--pending
|
||||||
--period=
|
--period=
|
||||||
@ -1190,7 +1177,6 @@ read -r -d "" _hledger_complist_options_close <<TEXT
|
|||||||
--value=
|
--value=
|
||||||
--version
|
--version
|
||||||
--weekly
|
--weekly
|
||||||
--x
|
|
||||||
--yearly
|
--yearly
|
||||||
TEXT
|
TEXT
|
||||||
|
|
||||||
@ -1299,7 +1285,6 @@ read -r -d "" _hledger_complist_options_equity <<TEXT
|
|||||||
--cleared
|
--cleared
|
||||||
--close
|
--close
|
||||||
--close-acct=
|
--close-acct=
|
||||||
--close-desc
|
|
||||||
--close-desc=
|
--close-desc=
|
||||||
--colour
|
--colour
|
||||||
--cost
|
--cost
|
||||||
@ -1320,9 +1305,7 @@ read -r -d "" _hledger_complist_options_equity <<TEXT
|
|||||||
--market
|
--market
|
||||||
--monthly
|
--monthly
|
||||||
--open
|
--open
|
||||||
--open-acct
|
|
||||||
--open-acct=
|
--open-acct=
|
||||||
--open-desc
|
|
||||||
--open-desc=
|
--open-desc=
|
||||||
--pending
|
--pending
|
||||||
--period=
|
--period=
|
||||||
@ -1335,7 +1318,6 @@ read -r -d "" _hledger_complist_options_equity <<TEXT
|
|||||||
--value=
|
--value=
|
||||||
--version
|
--version
|
||||||
--weekly
|
--weekly
|
||||||
--x
|
|
||||||
--yearly
|
--yearly
|
||||||
TEXT
|
TEXT
|
||||||
|
|
||||||
@ -1384,7 +1366,6 @@ read -r -d "" _hledger_complist_options_import <<TEXT
|
|||||||
--infer-market-price
|
--infer-market-price
|
||||||
--market
|
--market
|
||||||
--monthly
|
--monthly
|
||||||
--new
|
|
||||||
--pending
|
--pending
|
||||||
--period=
|
--period=
|
||||||
--pivot=
|
--pivot=
|
||||||
@ -1703,7 +1684,6 @@ read -r -d "" _hledger_complist_options_reg <<TEXT
|
|||||||
--daily
|
--daily
|
||||||
--date2
|
--date2
|
||||||
--debug=
|
--debug=
|
||||||
--depth
|
|
||||||
--depth=
|
--depth=
|
||||||
--empty
|
--empty
|
||||||
--end=
|
--end=
|
||||||
@ -1730,7 +1710,6 @@ read -r -d "" _hledger_complist_options_reg <<TEXT
|
|||||||
--value=
|
--value=
|
||||||
--version
|
--version
|
||||||
--weekly
|
--weekly
|
||||||
--width
|
|
||||||
--width=
|
--width=
|
||||||
--yearly
|
--yearly
|
||||||
TEXT
|
TEXT
|
||||||
@ -1749,7 +1728,6 @@ read -r -d "" _hledger_complist_options_register <<TEXT
|
|||||||
--daily
|
--daily
|
||||||
--date2
|
--date2
|
||||||
--debug=
|
--debug=
|
||||||
--depth
|
|
||||||
--depth=
|
--depth=
|
||||||
--empty
|
--empty
|
||||||
--end=
|
--end=
|
||||||
@ -1776,7 +1754,6 @@ read -r -d "" _hledger_complist_options_register <<TEXT
|
|||||||
--value=
|
--value=
|
||||||
--version
|
--version
|
||||||
--weekly
|
--weekly
|
||||||
--width
|
|
||||||
--width=
|
--width=
|
||||||
--yearly
|
--yearly
|
||||||
TEXT
|
TEXT
|
||||||
@ -1836,7 +1813,6 @@ read -r -d "" _hledger_complist_options_rewrite <<TEXT
|
|||||||
--empty
|
--empty
|
||||||
--end=
|
--end=
|
||||||
--exchange=
|
--exchange=
|
||||||
--file
|
|
||||||
--file=
|
--file=
|
||||||
--forecast
|
--forecast
|
||||||
--help
|
--help
|
||||||
@ -1879,7 +1855,6 @@ read -r -d "" _hledger_complist_options_roi <<TEXT
|
|||||||
--help
|
--help
|
||||||
--ignore-assertions
|
--ignore-assertions
|
||||||
--infer-value
|
--infer-value
|
||||||
--inv
|
|
||||||
--investment=
|
--investment=
|
||||||
--market
|
--market
|
||||||
--monthly
|
--monthly
|
||||||
@ -1973,7 +1948,6 @@ read -r -d "" _hledger_complist_options_tags <<TEXT
|
|||||||
TEXT
|
TEXT
|
||||||
|
|
||||||
read -r -d "" _hledger_complist_options_test <<TEXT
|
read -r -d "" _hledger_complist_options_test <<TEXT
|
||||||
--color=
|
|
||||||
--debug=
|
--debug=
|
||||||
--help
|
--help
|
||||||
--version
|
--version
|
||||||
|
|||||||
@ -17,7 +17,7 @@ main() {
|
|||||||
|
|
||||||
# Options requiring an argument make that explicit by appending
|
# Options requiring an argument make that explicit by appending
|
||||||
# the equal sign (=)
|
# the equal sign (=)
|
||||||
sed -rn 's/.* (--[a-zA-Z][-_a-zA-Z0-9]*=?).*/\1/gp' < "$tmp"
|
sed -rn 's/^\s+.*\s+(--[a-zA-Z][-_a-zA-Z0-9]*=?).*/\1/gp' < "$tmp"
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user