Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

name description cuts off last character #9

Open
JOJ0 opened this issue Jun 15, 2020 · 2 comments
Open

name description cuts off last character #9

JOJ0 opened this issue Jun 15, 2020 · 2 comments

Comments

@JOJ0
Copy link

JOJ0 commented Jun 15, 2020

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

@tobimensch
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants