tldr-python-client icon indicating copy to clipboard operation
tldr-python-client copied to clipboard

`tldr --search "KEYWORDS"` does not work

Open fazlearefin opened this issue 1 year ago • 4 comments

tldr --search seems to be not implemented

❯ tldr --version
tldr 3.2.0 (Client Specification 1.5)
❯ tldr --search memory
Please update cache
❯ tldr --search ls
Please update cache
❯

fazlearefin avatar Feb 22 '24 11:02 fazlearefin

For some reason it's --update_cache (or -u). 🤔

https://github.com/tldr-pages/tldr-python-client/blob/6536569d4ab954dec33aa9166df940a918094c83/tldr.py#L431

I think we should alias this if possible, so it's --update (but support --update_cache for backwards compatibility).

owenvoke avatar Feb 22 '24 11:02 owenvoke

For some reason it's --update_cache (or -u). 🤔

https://github.com/tldr-pages/tldr-python-client/blob/6536569d4ab954dec33aa9166df940a918094c83/tldr.py#L431

I think we should alias this if possible, so it's --update (but support --update_cache for backwards compatibility).

Sorry for the confusion. I meant to say tldr --search does not work

fazlearefin avatar Feb 22 '24 11:02 fazlearefin

Can confirm this issue, I was able to replicate it too.

kbdharun avatar Feb 22 '24 11:02 kbdharun

Ah, my bad. 👍🏻 Well, I opened a PR to add the --update support anyway. 🤷🏻 https://github.com/tldr-pages/tldr-python-client/pull/232

owenvoke avatar Feb 22 '24 11:02 owenvoke