cli2man icon indicating copy to clipboard operation
cli2man copied to clipboard

name description cuts off last character

Open JOJ0 opened this issue 4 years ago • 2 comments

Hi, I can't figure out why the last character is cut off from my --help outputs "Name description"

my command spits out something like this:

usage: command [-h] [-v] [-o] {arg1,arg2} ...

The ProjectNAME command description

cli2man gives me that

.Nm command
.Nd the projectname command descriptio

no matter what i write as "the command description", the very last character always gets cut off.

also I would like to know if I could use capital letters also in this description (my commands -h does use them!) or if this is a limitation of .mdoc format itself. seems like currently cli2man tranlates caps to non-caps here.

I am using Python 2.7.16 installed via homebrew on macOS 10.13.6

thanks a lot! Jojo

JOJ0 avatar Jun 15 '20 09:06 JOJ0

The capital letter thing is probably a choice I made because I thought it looks better that way. Look in the code for uses of lower() and upper() and you should be able to change it or add a command line option for it.

Pull requests welcome.

tobimensch avatar Jul 10 '20 14:07 tobimensch

It's probably not a limitation of mdoc by the way.

The n getting cut off at the end is very likely a bug in cli2man.

tobimensch avatar Jul 10 '20 14:07 tobimensch