Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetValidArgs ¶
func GetValidArgs(variant CommandVariant) (longArgs []string, shortArgs []string, mapping map[string]MappingQuery)
func PrintLicense ¶
func PrintLicense()
Types ¶
type Arguments ¶
type Arguments struct {
Name *string `dos:"n" posix:"name" posix_short:"n" powershell:"Name" powershell_short:"n"`
Duration *uint16 `dos:"d" posix:"duration" posix_short:"d" powershell:"Duration" powershell_short:"d"`
Pineapple *bool `` /* 140-byte string literal not displayed */
CheckSuperuser *bool `` /* 157-byte string literal not displayed */
ExitCode *uint16 `dos:"e" posix:"exit-code" posix_short:"e" powershell:"ExitCode" powershell_short:"e"`
Help *bool `dos:"?" posix:"help" posix_short:"h" powershell:"Help" powershell_short:"h"`
Version *bool `dos:"v" posix:"version" posix_short:"v" powershell:"Version" powershell_short:"v"`
}
func ParseArguments ¶
func ParseArguments(parsed map[string]string, mapping map[string]MappingQuery) Arguments
type MappingQuery ¶
type MappingQuery struct {
Long bool
Field reflect.StructField
Negative bool
}
Click to show internal directories.
Click to hide internal directories.