psibi / tldr-hs

Haskell tldr client
BSD 3-Clause "New" or "Revised" License
92 stars 14 forks source link

More verbose version #19

Closed stites closed 4 years ago

stites commented 4 years ago

very low priority, but it would be nice to have a slightly more verbose version output. For example, the official tldr client outputs the following:

❯ ~/.nix-profile/bin/tldr -v
/home/stites/.nix-profile/bin/tldr v1.3.0
Copyright (C) 2016 Arvid Gerstmann
Source available at https://github.com/tldr-pages/tldr-cpp-client
psibi commented 4 years ago

@stites Thanks for the feedback! If you are interested, you can send a PR for the same. Or else I will see if I can get this fixed this weekend (or by the end of this month).

psibi commented 4 years ago

@stites I looked into this today and it seems the CPP client has two different options:

Given that in Unix, the general convention is that -v and --versionboth mean the same thing I'm not sure if it would be a good idea to treat-vand--versiondifferent. What do you think about adding a separate option named--about` ?

psibi commented 4 years ago

@stites I have implemented the above concept in https://github.com/psibi/tldr-hs/pull/20 but in --about option.

$ tldr --about
/home/sibi/.local/bin/tldr v0.6.0
Copyright (C) 2017 Sibi Prabakaran
Source available at https://github.com/psibi/tldr-hs

What do you think ?

stites commented 4 years ago

That's great, thanks!

psibi commented 4 years ago

A new version 0.6.1 has been uploaded to Hackage which contains this changes. Thanks!