Bat: Provide a man page

Created on 3 May 2018  路  12Comments  路  Source: sharkdp/bat

Offer a linux manual page for utility description.

documentation help wanted

Most helpful comment

Sounds good. However, it feels to me that we are in a very early stage of development and command-line options are just starting to develop. So this does not feel very urgent to me.

All 12 comments

Also, it would be nice if it wasn't Linux-specific 馃槃

Sounds good. However, it feels to me that we are in a very early stage of development and command-line options are just starting to develop. So this does not feel very urgent to me.

@sharkdp Would it be nice to have a troff man page or generate it from clap?

Would it be nice to have a troff man page or generate it from clap?

troff is what we also have for fd, correct? If so, I'd prefer the same format, yes.

Auto-generating the man page also sounds appealing because maintaining the man page for fd is quite cumbersome, to be honest. But generating via clap doesn't work yet, right?

Oh, @sharkdp I was the one who contributed to fd man page, just remembered it. Haha

https://github.com/sharkdp/fd/commit/b6c95a48002b03ea31f32cedf8c1cb5ecb9e096f

Yes, auto man page generation is still in progress https://github.com/clap-rs/clap_generate/pull/1

@pickfire I know :smile: :+1:. What would you suggest for bat?

@sharkdp If clap_generate have a auto man page generation, I definitely would suggest that. Right now if it was me, I would have wait for that support.

And please add "man" as subcommand of bat to open it 馃憤

@kgilonne No, I would definitely not do that, now there's is already rustup man xxx which I think is useless, why not just add the rust man pages to MANPATH?

I also don't see the need for a man subcommand.

I have added a simple initial version in doc/bat.1 via help2man + some manual editing.

I am going to close this ticket. The next version of bat will ship with a man page. Any help in improving the man page is very much appreciated!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adamtabrams picture adamtabrams  路  3Comments

HakubJozak picture HakubJozak  路  3Comments

tbsvttr picture tbsvttr  路  3Comments

gAmUssA picture gAmUssA  路  3Comments

niedzielski picture niedzielski  路  3Comments