class

OptionParser

Inherits Reference < Object

These modifications to OptionParser apply text wrapping so that the command-line help is nicely formatted regardless of terminal width, and so that the formatting is visually similar to the Javascript version.

Instance methods

separator(message = "")

Adds a separator, with an optional header message, that will be used to print the help. The separator is placed between the flags registered (#on) before, and the flags registered after the call.

This way, you can group the different options in an easier to read way.

Source
to_s(io : IO) : Nil

Returns all the setup options, formatted in a help message.

Source