You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When not setting the columns value, the help output is weirdly formatted, since it behaves as if you try to wrap with a very small value, instead of no wrap as the javadoc indicates.
Sample code
class Configuration(parser: ArgParser) {
val test by parser.storing(help = "lol test")
init {
parser.force()
}
}
fun main(args: Array<String>) = mainBody(columns = 0) {
Configuration(ArgParser(args))
}
Output:
usage:
[
-
h
]
-
-
t
e
s
t
T
E
S
T
required arguments:
- l
- o
t l
e
s t
t e
s
T t
E
S
T
optional arguments:
- s
h h
, o
w
-
- t
h h
e i
l s
p
h
e
l
p
m
e
s
s
a
g
e
a
n
d
e
x
i
t
This has been obtained with kotlin 1.1.2-2 on jre 8.
The text was updated successfully, but these errors were encountered:
When not setting the columns value, the help output is weirdly formatted, since it behaves as if you try to wrap with a very small value, instead of no wrap as the javadoc indicates.
Sample code
Output:
This has been obtained with kotlin 1.1.2-2 on jre 8.
The text was updated successfully, but these errors were encountered: