I am writing a small console application. This app should print a help when -h is passed. This is what I'm trying to get:
Program that prints help.
Usage:
prg [OPTIONS]
Options:
-h - print help.
-x - some very very very very very very very very very very very very very very
very very very very long parameter description.
-y - another very very very very very very very very very very very very very
very very very very long parameter description.
I'm using echo. -x - {long description here}
to print parameter description. And of course when the string is too long it is printed like this:
-x - some very very very very very very very very very very very very
very very very very long parameter description.
So the question is how can I print a long string with something like left border specified?