docopt.cpp icon indicating copy to clipboard operation
docopt.cpp copied to clipboard

An option description can be located after a new line

Open EVGVir opened this issue 9 years ago • 5 comments

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.

EVGVir avatar Aug 07 '16 21:08 EVGVir

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.

jaredgrubb avatar Sep 04 '16 18:09 jaredgrubb

As I wrote above, the commit for docopt-py is awaiting his destiny. I have prepared those commits simultaneously.

Moreover, the day before yesterday I have written directly to Vladimir @Keleshev about my two pull requests. But unfortunately, I have no reaction yet.

EVGVir avatar Sep 04 '16 21:09 EVGVir

Is there an update on the status of this PR? I'm also interested by this feature.

Camille019 avatar Feb 20 '18 16:02 Camille019

I've posted a comment on the docopt mentioned by EVGVir. Hopefluly it'll get merged there, and then we can do it here :/

jaredgrubb avatar Feb 21 '18 17:02 jaredgrubb

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!

indianakernick avatar Nov 27 '19 07:11 indianakernick