IndentedHelpFormatter {optparse} | R Documentation |
Builtin help text formatters
Description
IndentedHelpFormatter()
is the default help text formatter.
TitledHelpFormatter()
is an alternative help text formatter.
Usage
IndentedHelpFormatter(object)
TitledHelpFormatter(object)
Arguments
object |
An |
Value
NULL
invisibly. As a side effect prints out help text.
Examples
parser <- OptionParser(formatter = IndentedHelpFormatter)
parser <- add_option(parser, "--generator", help = "Generator option")
parser <- add_option(parser, "--count", help = "Count option")
print_help(parser)
parser <- OptionParser(formatter = TitledHelpFormatter)
parser <- add_option(parser, "--generator", help = "Generator option")
parser <- add_option(parser, "--count", help = "Count option")
print_help(parser)
[Package optparse version 1.7.5 Index]