Is it possible, or does some function exists, to get the equivalent of the alt-q
command, but in programming?
Suppose I've just written this in python:
group_parser.add_argument('-n',nargs=1, default=5,
help='specifies how many missing entries in a row are allowed before the whole row gets omitted.')
The following is a rather long line. Is it possible to have some sort of automation for getting the following output?
parser.add_argument('-n',nargs=1, default=5,
help='specifies how many ' +
'missing entries in a row ' +
'are allowed before the whole row gets ' +
'omitted.')
In other words, a function that detects long input strings, and splits them up across multiple lines.