isacikgoz / tldr

fast and interactive tldr client written with go

Home Page:https://isacikgoz.me/tldr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No output for failed commands

freopen opened this issue · comments

> tldr curl
Transfers data from or to a server.
Supports most protocols, including HTTP, FTP, and POP3.
More information: <https://curl.se>.

  Download the contents of an URL to a file
  curl http://example.com -o filename

$ http://example.com -> 
$ filename -> 
? curl  -o  [Y/n] y
exit status 2

> curl -o                                 
curl: option -o: requires parameter
curl: try 'curl --help' for more information

If command failed - I can only know the exit code, sometimes it's very hard to understand what's wrong because of that.

Reproducible with v1.0.0-alpha. Not reproducible with v0.6.1.

Also some valid commands don't work too:

> ./tldr pacman   

pacman

Arch Linux package manager utility.
More information: <https://man.archlinux.org/man/pacman.8>.

  Search the package database for a regular expression or keyword
   pacman -Ss "search_pattern"

$ search_pattern -> tldr
? pacman -Ss "tldr" Yes
exit status 1

> pacman -Ss "tldr"
community/tldr 1.2.0-1
    Command line client for tldr, a collection of simplified and
    community-driven man pages.

This one doesn't work with both v1.0.0-alpha and v0.6.1.

It seems to be a regression, noted. Thanks for the feedback @freopen I will be looking into this.