diff --git a/bin/README.md b/bin/README.md index 6945ea829..b2cdc29a9 100644 --- a/bin/README.md +++ b/bin/README.md @@ -243,13 +243,13 @@ $ hledger bar reimbursement ``` ```cli -$ hledger bar # show help -$ hledger bar food # monthly food expenses -$ hledger bar -- 1 --count food # monthly food posting counts -$ hledger bar -- type:c not:tag:clopen cur:\\\\$ -W # weekly cashflow, $ only -$ hledger bar -- type:al not:tag:clopen cur:\\\\$ # monthly net worth change ($) -$ hledger bar -- type:rx --invert cur:\\\\$ # monthly profit/loss ($) -$ hledger bar -- -v 1 -f $TIMELOG -D # daily hours, with numbers +$ hledger bar # show help +$ hledger bar food # monthly food expenses +$ hledger bar 1 --count food # monthly food posting counts +$ hledger bar type:c not:tag:clopen cur:\\\\$ -W # weekly cashflow, $ only +$ hledger bar type:al not:tag:clopen cur:\\\\$ # monthly net worth change ($) +$ hledger bar type:rx --invert cur:\\\\$ # monthly profit/loss ($) +$ hledger bar -v 1 -f $TIMELOG -D # daily hours, with numbers ``` ### hledger-git @@ -324,7 +324,7 @@ $ pip install -U hledger-utils # might be slightly different on your system Examples: ``` $ hledger-plot -h -$ hledger plot -- bal -DH ^Assets -2 +$ hledger plot bal -DH ^Assets -2 ``` ### hledger-lots @@ -386,7 +386,7 @@ runs a register report and prints the posting with largest historical balance. ```cli $ hledger-register-max -f examples/bcexample.hledger checking 2013-01-03 Hoogle | Payroll Assets:US:BofA:Checking 1350.60 USD 8799.22 USD -$ hledger register-max -- -f examples/bcexample.hledger checking +$ hledger register-max -f examples/bcexample.hledger checking 2013-01-03 Hoogle | Payroll Assets:US:BofA:Checking 1350.60 USD 8799.22 USD ``` @@ -542,7 +542,7 @@ On unix, the new script should be marked executable. This should do it: My new cmd command. ... $ stack ghc hledger-cmd.hs # optionally compile for faster startup/durability - $ hledger cmd -- --help + $ hledger cmd --help cmd [OPTIONS] My new cmd command. ... diff --git a/hledger-ui/hledger-ui.m4.md b/hledger-ui/hledger-ui.m4.md index f8b98a855..2ddef2e62 100644 --- a/hledger-ui/hledger-ui.m4.md +++ b/hledger-ui/hledger-ui.m4.md @@ -12,9 +12,9 @@ _notinfo_({{ # SYNOPSIS }}) -`hledger-ui [OPTS] [QUERYARGS]`\ +`hledger-ui [OPTS] [QUERYARGS]`\ or\ -`hledger ui -- [OPTS] [QUERYARGS]` +`hledger ui [OPTS] [QUERYARGS]` _notinfo_({{ # DESCRIPTION diff --git a/hledger-web/hledger-web.m4.md b/hledger-web/hledger-web.m4.md index de99303e1..93b60e6ff 100644 --- a/hledger-web/hledger-web.m4.md +++ b/hledger-web/hledger-web.m4.md @@ -12,9 +12,9 @@ _notinfo_({{ # SYNOPSIS }}) -`hledger-web [OPTS] [QUERY]`\ +`hledger-web [OPTS] [QUERY]`\ or\ -`hledger web -- [OPTS] [QUERY]` +`hledger web [OPTS] [QUERY]` _notinfo_({{ # DESCRIPTION @@ -85,7 +85,7 @@ Flags: --base-url=BASEURL set the base url (default: http://IPADDR:PORT) --test run hledger-web's tests and exit. hspec test runner args may follow a --, eg: hledger-web --test - -- --help + --help ``` By default hledger-web listens only on IP address `127.0.0.1`, diff --git a/hledger/Hledger/Cli/Commands/Rewrite.md b/hledger/Hledger/Cli/Commands/Rewrite.md index 54d2774bf..7d5262b92 100644 --- a/hledger/Hledger/Cli/Commands/Rewrite.md +++ b/hledger/Hledger/Cli/Commands/Rewrite.md @@ -39,10 +39,10 @@ and the two spaces between account and amount. More: ```cli -$ hledger rewrite -- [QUERY] --add-posting "ACCT AMTEXPR" ... -$ hledger rewrite -- ^income --add-posting '(liabilities:tax) *.33' -$ hledger rewrite -- expenses:gifts --add-posting '(budget:gifts) *-1"' -$ hledger rewrite -- ^income --add-posting '(budget:foreign currency) *0.25 JPY; diversify' +$ hledger rewrite [QUERY] --add-posting "ACCT AMTEXPR" ... +$ hledger rewrite ^income --add-posting '(liabilities:tax) *.33' +$ hledger rewrite expenses:gifts --add-posting '(budget:gifts) *-1"' +$ hledger rewrite ^income --add-posting '(budget:foreign currency) *0.25 JPY; diversify' ``` Argument for `--add-posting` option is a usual posting of transaction with an @@ -79,14 +79,14 @@ you usually write. It indicates the query by which you want to match the posting to add new ones. ```cli -$ hledger rewrite -- -f input.journal -f rewrite-rules.journal > rewritten-tidy-output.journal +$ hledger rewrite -f input.journal -f rewrite-rules.journal > rewritten-tidy-output.journal ``` This is something similar to the commands pipeline: ```cli -$ hledger rewrite -- -f input.journal '^income' --add-posting '(liabilities:tax) *.33' \ - | hledger rewrite -- -f - expenses:gifts --add-posting 'budget:gifts *-1' \ +$ hledger rewrite -f input.journal '^income' --add-posting '(liabilities:tax) *.33' \ + | hledger rewrite -f - expenses:gifts --add-posting 'budget:gifts *-1' \ --add-posting 'assets:budget *1' \ > rewritten-tidy-output.journal ``` @@ -100,7 +100,7 @@ To use this tool for batch modification of your journal files you may find useful output in form of unified diff. ```cli -$ hledger rewrite -- --diff -f examples/sample.journal '^income' --add-posting '(liabilities:tax) *.33' +$ hledger rewrite --diff -f examples/sample.journal '^income' --add-posting '(liabilities:tax) *.33' ``` Output might look like: diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index 510a86612..a89249d31 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -17,8 +17,6 @@ _notinfo_({{ `hledger`\ or\ `hledger COMMAND [OPTS] [ARGS]`\ -or\ -`hledger ADDONCMD [OPTS] -- [ADDONOPTS] [ADDONARGS]` _notinfo_({{ # DESCRIPTION @@ -189,8 +187,7 @@ With the `-s`/`--strict` flag, additional checks are performed: ([Commodity error checking](#commodity-error-checking)) - Are all commodity conversions declared explicitly ? -You can use the [check](#check) command to run individual checks -- the -ones listed above and some more. +You can use the [check](#check) command to run individual checks - the ones listed above and some more. # Commands