getopt.net
A port of getopt in pure C#.
|
A class that contains configuration options for the help text generator. More...
Static Public Member Functions | |
static HelpTextConfig | GnuConfig () |
Gets a configuration for the GNU/POSIX convention. | |
static HelpTextConfig | WindowsConfig () |
Gets a configuration for the Windows convention. | |
static HelpTextConfig | PowershellConfig () |
Gets a configuration for the Powershell convention. | |
Properties | |
bool | ShowSupportedConventions = false [get, set] |
Whether to show the supported conventions in the help text. | |
int | MaxWidth = 100 [get, set] |
The maximum width of the help text. | |
OptionConvention | OptionConvention = OptionConvention.GnuPosix [get, set] |
The option convention to use. | |
string? | ApplicationName [get, set] |
The name of the application. | |
string? | ApplicationVersion [get, set] |
The version of the application. | |
string? | FooterText [get, set] |
A footer text to be displayed under the help text. | |
DateTime? | CopyrightDate [get, set] |
The date of the copyright. | |
string? | CopyrightHolder [get, set] |
The holder of the copyright. | |
static HelpTextConfig | Default [get] |
Gets a default configuration. | |
A class that contains configuration options for the help text generator.
Definition at line 8 of file HelpTextConfig.cs.
|
static |
Gets a configuration for the GNU/POSIX convention.
References getopt.net.HelpTextConfig.ApplicationName, getopt.net.HelpTextConfig.ApplicationVersion, getopt.net.HelpTextConfig.FooterText, and getopt.net.HelpTextConfig.MaxWidth.
|
static |
Gets a configuration for the Powershell convention.
References getopt.net.HelpTextConfig.ApplicationName, getopt.net.HelpTextConfig.ApplicationVersion, getopt.net.HelpTextConfig.FooterText, and getopt.net.HelpTextConfig.MaxWidth.
|
static |
Gets a configuration for the Windows convention.
References getopt.net.HelpTextConfig.ApplicationName, getopt.net.HelpTextConfig.ApplicationVersion, getopt.net.HelpTextConfig.FooterText, and getopt.net.HelpTextConfig.MaxWidth.
|
getset |
The name of the application.
Definition at line 28 of file HelpTextConfig.cs.
Referenced by getopt.net.HelpTextConfig.GnuConfig(), getopt.net.HelpTextConfig.PowershellConfig(), and getopt.net.HelpTextConfig.WindowsConfig().
|
getset |
The version of the application.
Definition at line 33 of file HelpTextConfig.cs.
Referenced by getopt.net.HelpTextConfig.GnuConfig(), getopt.net.HelpTextConfig.PowershellConfig(), and getopt.net.HelpTextConfig.WindowsConfig().
|
getset |
|
getset |
|
staticget |
Gets a default configuration.
Definition at line 53 of file HelpTextConfig.cs.
Referenced by getopt.net.Extensions.GenerateHelpText().
|
getset |
A footer text to be displayed under the help text.
Definition at line 38 of file HelpTextConfig.cs.
Referenced by getopt.net.HelpTextConfig.GnuConfig(), getopt.net.HelpTextConfig.PowershellConfig(), and getopt.net.HelpTextConfig.WindowsConfig().
|
getset |
The maximum width of the help text.
Definition at line 18 of file HelpTextConfig.cs.
Referenced by getopt.net.HelpTextConfig.GnuConfig(), getopt.net.HelpTextConfig.PowershellConfig(), and getopt.net.HelpTextConfig.WindowsConfig().
|
getset |
The option convention to use.
Definition at line 23 of file HelpTextConfig.cs.
|
getset |
Whether to show the supported conventions in the help text.
Definition at line 13 of file HelpTextConfig.cs.