-
Notifications
You must be signed in to change notification settings - Fork 147
An option description can be located after a new line #55
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
Conversation
Sometimes if an option is too long, it looks better when its description starts on a new line.
jaredgrubb
commented
Sep 4, 2016
I think this is a great patch. However, the testcase file is copied verbatim from the docopt-py repo. Would you mind offering the testcase-only patch to that repo first? I'm willing to do it if you dont want to. The test case actually does pass the Python version but fails the C++ version -- which I think makes it a GREAT testcase.
EVGVir
commented
Sep 4, 2016
Camille019
commented
Feb 20, 2018
Is there an update on the status of this PR? I'm also interested by this feature.
jaredgrubb
commented
Feb 21, 2018
I've posted a comment on the docopt mentioned by EVGVir. Hopefluly it'll get merged there, and then we can do it here :/
indianakernick
commented
Nov 27, 2019
This actually doesn't quite work properly. -f and -b are added to the map instead of --foo and --bar. I really think this feature is useful for creating beautiful command-line interfaces!
Sometimes if an option is too long, it looks better when its description starts on a new line.
Such behaviour is supported (though it is not documented) by the original docopt. A commit with corresponding test is requested to be pulled.