add.subparsers | R Documentation |
ArgumentParser
.Split functionality of a script into any number of sub-commands.
## S4 method for signature 'essentials_ArgumentParser'
add.subparsers(title = NA, description = NA, program = NA, required = FALSE,
wrap = TRUE, indent = 0, exdent = 0)
title |
character string. The name of the sub-commands group in the help message, by default "Commands:". |
description |
character vector. A brief description of the sub-commands group. |
program |
character string. The name of the program to be displayed in the help message, by default the name of the original program followed by all previous sub-commands. |
required |
logical. Are one of these sub-commands required? For example,
in |
wrap |
logical. Should |
indent |
a non-negative integer giving the indentation of the first line in a paragraph. |
exdent |
a non-negative integer giving the indentation of the subsequent lines in a paragraph. |
add.subparsers
will return an object of class "subparsers", which can
be used to add individual sub-commands with add.parser
.
An object of class "subparsers".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.