hledger icon indicating copy to clipboard operation
hledger copied to clipboard

Removed command hledger check-dates is still displayed on shell completion

Open louislebrault opened this issue 3 years ago • 2 comments

Version : hledger 1.26, linux-x86_64

The problems concerns also check-dupes command.

$ hledger check-d
check-dates  -- check that transactions are sorted by increasing date
check-dupes  -- report account names having the same leaf but different prefixes

When trying to run those commands it leads to an error message :

hledger: Error: command check-dates is not recognized, run with no command to see a list

If this is within my competences and if somebody confirms this is an oversight i may update shell completion, replacing it by hledger check <check>.

louislebrault avatar Aug 30 '22 23:08 louislebrault

+1, that does sound like an oversight. The completions are defined in their own directory, should be not too hard.

simonmichael avatar Aug 31 '22 07:08 simonmichael

I encountered this behavior on zsh, it seems that bash completion is up-to-date. But according on hledger documentation, zsh completion is not supported. I'm a bit confused about where this zsh completion come from, maybe this issue does not concern this repo.

louislebrault avatar Aug 31 '22 22:08 louislebrault

Agreed, we only provide bash completions currently. Closing this.

simonmichael avatar Apr 29 '23 03:04 simonmichael