FlagSet
Overview
Location
-
Reference:
- Go.dll .NET, .NET Standard 2.0
- Go.fx Island
- Namespace: go.flag
- Platforms: .NET, .NET Standard 2.0, Island
constructor
constructor
FlagSet()
init()
Sub New()
constructor (Action, string, Boolean, Map<string, Memory<Flag>>, Map<string, Memory<Flag>>, Slice<string>, ErrorHandling, Writer)
// .NET, .NET Standard 2.0
constructor(aUsage: Action; aname: string; aparsed: Boolean; aactual: Map<string, Memory<Flag>>; aformal: Map<string, Memory<Flag>>; aargs: Slice<string>; aerrorHandling: ErrorHandling; aoutput: Writer)
// Island
constructor(aUsage: Action; aname: string; aparsed: bool; aactual: Map<string, Memory<Flag>>; aformal: Map<string, Memory<Flag>>; aargs: Slice<string>; aerrorHandling: ErrorHandling; aoutput: Writer)
// .NET, .NET Standard 2.0
FlagSet(Action aUsage, string aname, Boolean aparsed, Map<string, Memory<Flag>> aactual, Map<string, Memory<Flag>> aformal, Slice<string> aargs, ErrorHandling aerrorHandling, Writer aoutput)
// Island
FlagSet(Action aUsage, string aname, bool aparsed, Map<string, Memory<Flag>> aactual, Map<string, Memory<Flag>> aformal, Slice<string> aargs, ErrorHandling aerrorHandling, Writer aoutput)
// .NET, .NET Standard 2.0
init(_ aUsage: Action, _ aname: string, _ aparsed: Boolean, _ aactual: Map<string, Memory<Flag>>, _ aformal: Map<string, Memory<Flag>>, _ aargs: Slice<string>, _ aerrorHandling: ErrorHandling, _ aoutput: Writer)
// Island
init(_ aUsage: Action, _ aname: string, _ aparsed: bool, _ aactual: Map<string, Memory<Flag>>, _ aformal: Map<string, Memory<Flag>>, _ aargs: Slice<string>, _ aerrorHandling: ErrorHandling, _ aoutput: Writer)
// .NET, .NET Standard 2.0
Sub New(aUsage As Action, aname As string, aparsed As Boolean, aactual As Map<string, Memory<Flag>>, aformal As Map<string, Memory<Flag>>, aargs As Slice<string>, aerrorHandling As ErrorHandling, aoutput As Writer)
// Island
Sub New(aUsage As Action, aname As string, aparsed As bool, aactual As Map<string, Memory<Flag>>, aformal As Map<string, Memory<Flag>>, aargs As Slice<string>, aerrorHandling As ErrorHandling, aoutput As Writer)
Parameters:
- aUsage:
- aname:
- aparsed:
- aactual:
- aformal:
- aargs:
- aerrorHandling:
- aoutput:
constructor (FlagSet)
Parameters:
- value:
Arg
Parameters:
- i:
Args
Bool
// .NET, .NET Standard 2.0
method Bool(name: string; value: bool; usage: string): Memory<Boolean>
// Island
method Bool(name: string; value: bool; usage: string): Memory<Boolean>
// .NET, .NET Standard 2.0
Memory<Boolean> Bool(string name, bool value, string usage)
// Island
Memory<Boolean> Bool(string name, bool value, string usage)
// .NET, .NET Standard 2.0
func Bool(_ name: string, _ value: bool, _ usage: string) -> Memory<Boolean>
// Island
func Bool(_ name: string, _ value: bool, _ usage: string) -> Memory<Boolean>
Parameters:
- name:
- value:
- usage:
BoolVar
// .NET, .NET Standard 2.0
method BoolVar(p: Memory<Boolean>; name: string; value: bool; usage: string)
// Island
method BoolVar(p: Memory<Boolean>; name: string; value: bool; usage: string)
// .NET, .NET Standard 2.0
void BoolVar(Memory<Boolean> p, string name, bool value, string usage)
// Island
void BoolVar(Memory<Boolean> p, string name, bool value, string usage)
// .NET, .NET Standard 2.0
func BoolVar(_ p: Memory<Boolean>, _ name: string, _ value: bool, _ usage: string)
// Island
func BoolVar(_ p: Memory<Boolean>, _ name: string, _ value: bool, _ usage: string)
Parameters:
- p:
- name:
- value:
- usage:
Duration
// .NET, .NET Standard 2.0
method Duration(name: string; value: Duration; usage: string): Memory<Duration>
// Island
method Duration(name: string; value: Duration; usage: string): Memory<Duration>
// .NET, .NET Standard 2.0
Memory<Duration> Duration(string name, Duration value, string usage)
// Island
Memory<Duration> Duration(string name, Duration value, string usage)
// .NET, .NET Standard 2.0
func Duration(_ name: string, _ value: Duration, _ usage: string) -> Memory<Duration>
// Island
func Duration(_ name: string, _ value: Duration, _ usage: string) -> Memory<Duration>
Parameters:
- name:
- value:
- usage:
DurationVar
// .NET, .NET Standard 2.0
method DurationVar(p: Memory<Duration>; name: string; value: Duration; usage: string)
// Island
method DurationVar(p: Memory<Duration>; name: string; value: Duration; usage: string)
// .NET, .NET Standard 2.0
void DurationVar(Memory<Duration> p, string name, Duration value, string usage)
// Island
void DurationVar(Memory<Duration> p, string name, Duration value, string usage)
// .NET, .NET Standard 2.0
func DurationVar(_ p: Memory<Duration>, _ name: string, _ value: Duration, _ usage: string)
// Island
func DurationVar(_ p: Memory<Duration>, _ name: string, _ value: Duration, _ usage: string)
Parameters:
- p:
- name:
- value:
- usage:
ErrorHandling
method ErrorHandling: ErrorHandling
ErrorHandling ErrorHandling()
func ErrorHandling() -> ErrorHandling
func ErrorHandling() ErrorHandling
Function ErrorHandling() As ErrorHandling
Float64
// .NET, .NET Standard 2.0
method Float64(name: string; value: float64; usage: string): Memory<Double>
// Island
method Float64(name: string; value: float64; usage: string): Memory<Double>
// .NET, .NET Standard 2.0
Memory<Double> Float64(string name, float64 value, string usage)
// Island
Memory<Double> Float64(string name, float64 value, string usage)
// .NET, .NET Standard 2.0
func Float64(_ name: string, _ value: float64, _ usage: string) -> Memory<Double>
// Island
func Float64(_ name: string, _ value: float64, _ usage: string) -> Memory<Double>
Parameters:
- name:
- value:
- usage:
Float64Var
// .NET, .NET Standard 2.0
method Float64Var(p: Memory<Double>; name: string; value: float64; usage: string)
// Island
method Float64Var(p: Memory<Double>; name: string; value: float64; usage: string)
// .NET, .NET Standard 2.0
void Float64Var(Memory<Double> p, string name, float64 value, string usage)
// Island
void Float64Var(Memory<Double> p, string name, float64 value, string usage)
// .NET, .NET Standard 2.0
func Float64Var(_ p: Memory<Double>, _ name: string, _ value: float64, _ usage: string)
// Island
func Float64Var(_ p: Memory<Double>, _ name: string, _ value: float64, _ usage: string)
Parameters:
- p:
- name:
- value:
- usage:
Init
method Init(name: string; errorHandling: ErrorHandling)
void Init(string name, ErrorHandling errorHandling)
func Init(_ name: string, _ errorHandling: ErrorHandling)
// .NET, .NET Standard 2.0
func Init(name string, errorHandling ErrorHandling)
// Island
func Init(name string, errorHandling ErrorHandling) void
Sub Init(name As string, errorHandling As ErrorHandling)
Parameters:
- name:
- errorHandling:
Int
// .NET, .NET Standard 2.0
method Int(name: string; value: int; usage: string): Memory<Int64>
// Island
method Int(name: string; value: int; usage: string): Memory<Int64>
// .NET, .NET Standard 2.0
Memory<Int64> Int(string name, int value, string usage)
// Island
Memory<Int64> Int(string name, int value, string usage)
// .NET, .NET Standard 2.0
func Int(_ name: string, _ value: int, _ usage: string) -> Memory<Int64>
// Island
func Int(_ name: string, _ value: int, _ usage: string) -> Memory<Int64>
Parameters:
- name:
- value:
- usage:
Int64
// .NET, .NET Standard 2.0
method Int64(name: string; value: int64; usage: string): Memory<int64>
// Island
method Int64(name: string; value: int64; usage: string): Memory<int64>
// .NET, .NET Standard 2.0
Memory<int64> Int64(string name, int64 value, string usage)
// Island
Memory<int64> Int64(string name, int64 value, string usage)
// .NET, .NET Standard 2.0
func Int64(_ name: string, _ value: int64, _ usage: string) -> Memory<int64>
// Island
func Int64(_ name: string, _ value: int64, _ usage: string) -> Memory<int64>
Parameters:
- name:
- value:
- usage:
Int64Var
// .NET, .NET Standard 2.0
method Int64Var(p: Memory<int64>; name: string; value: int64; usage: string)
// Island
method Int64Var(p: Memory<int64>; name: string; value: int64; usage: string)
// .NET, .NET Standard 2.0
void Int64Var(Memory<int64> p, string name, int64 value, string usage)
// Island
void Int64Var(Memory<int64> p, string name, int64 value, string usage)
// .NET, .NET Standard 2.0
func Int64Var(_ p: Memory<int64>, _ name: string, _ value: int64, _ usage: string)
// Island
func Int64Var(_ p: Memory<int64>, _ name: string, _ value: int64, _ usage: string)
Parameters:
- p:
- name:
- value:
- usage:
IntVar
// .NET, .NET Standard 2.0
method IntVar(p: Memory<Int64>; name: string; value: int; usage: string)
// Island
method IntVar(p: Memory<Int64>; name: string; value: int; usage: string)
// .NET, .NET Standard 2.0
void IntVar(Memory<Int64> p, string name, int value, string usage)
// Island
void IntVar(Memory<Int64> p, string name, int value, string usage)
// .NET, .NET Standard 2.0
func IntVar(_ p: Memory<Int64>, _ name: string, _ value: int, _ usage: string)
// Island
func IntVar(_ p: Memory<Int64>, _ name: string, _ value: int, _ usage: string)
Parameters:
- p:
- name:
- value:
- usage:
Lookup
// .NET, .NET Standard 2.0
method Lookup(name: string): Memory<Flag>
// Island
method Lookup(name: string): Memory<Flag>
// .NET, .NET Standard 2.0
Memory<Flag> Lookup(string name)
// Island
Memory<Flag> Lookup(string name)
// .NET, .NET Standard 2.0
func Lookup(_ name: string) -> Memory<Flag>
// Island
func Lookup(_ name: string) -> Memory<Flag>
Parameters:
- name:
Name
method Name: string
string Name()
func Name() -> string
func Name() string
Function Name() As string
NArg
NFlag
Output
method Output: Writer
Writer Output()
func Output() -> Writer
func Output() Writer
Function Output() As Writer
Parse
Parameters:
- arguments:
Parsed
method Parsed: bool
bool Parsed()
func Parsed() -> bool
func Parsed() bool
Function Parsed() As bool
PrintDefaults
method PrintDefaults
void PrintDefaults()
func PrintDefaults()
// .NET, .NET Standard 2.0
func PrintDefaults()
// Island
func PrintDefaults() void
Sub PrintDefaults()
Set
Parameters:
- name:
- value:
SetOutput
method SetOutput(output: Writer)
void SetOutput(Writer output)
func SetOutput(_ output: Writer)
// .NET, .NET Standard 2.0
func SetOutput(output Writer)
// Island
func SetOutput(output Writer) void
Sub SetOutput(output As Writer)
Parameters:
- output:
String
// .NET, .NET Standard 2.0
method String(name: string; value: string; usage: string): Memory<string>
// Island
method String(name: string; value: string; usage: string): Memory<string>
// .NET, .NET Standard 2.0
Memory<string> String(string name, string value, string usage)
// Island
Memory<string> String(string name, string value, string usage)
// .NET, .NET Standard 2.0
func String(_ name: string, _ value: string, _ usage: string) -> Memory<string>
// Island
func String(_ name: string, _ value: string, _ usage: string) -> Memory<string>
Parameters:
- name:
- value:
- usage:
StringVar
// .NET, .NET Standard 2.0
method StringVar(p: Memory<string>; name: string; value: string; usage: string)
// Island
method StringVar(p: Memory<string>; name: string; value: string; usage: string)
// .NET, .NET Standard 2.0
void StringVar(Memory<string> p, string name, string value, string usage)
// Island
void StringVar(Memory<string> p, string name, string value, string usage)
// .NET, .NET Standard 2.0
func StringVar(_ p: Memory<string>, _ name: string, _ value: string, _ usage: string)
// Island
func StringVar(_ p: Memory<string>, _ name: string, _ value: string, _ usage: string)
Parameters:
- p:
- name:
- value:
- usage:
Uint
// .NET, .NET Standard 2.0
method Uint(name: string; value: uint; usage: string): Memory<UInt64>
// Island
method Uint(name: string; value: uint; usage: string): Memory<UInt64>
// .NET, .NET Standard 2.0
Memory<UInt64> Uint(string name, uint value, string usage)
// Island
Memory<UInt64> Uint(string name, uint value, string usage)
// .NET, .NET Standard 2.0
func Uint(_ name: string, _ value: uint, _ usage: string) -> Memory<UInt64>
// Island
func Uint(_ name: string, _ value: uint, _ usage: string) -> Memory<UInt64>
Parameters:
- name:
- value:
- usage:
Uint64
// .NET, .NET Standard 2.0
method Uint64(name: string; value: uint64; usage: string): Memory<uint64>
// Island
method Uint64(name: string; value: uint64; usage: string): Memory<uint64>
// .NET, .NET Standard 2.0
Memory<uint64> Uint64(string name, uint64 value, string usage)
// Island
Memory<uint64> Uint64(string name, uint64 value, string usage)
// .NET, .NET Standard 2.0
func Uint64(_ name: string, _ value: uint64, _ usage: string) -> Memory<uint64>
// Island
func Uint64(_ name: string, _ value: uint64, _ usage: string) -> Memory<uint64>
Parameters:
- name:
- value:
- usage:
Uint64Var
// .NET, .NET Standard 2.0
method Uint64Var(p: Memory<uint64>; name: string; value: uint64; usage: string)
// Island
method Uint64Var(p: Memory<uint64>; name: string; value: uint64; usage: string)
// .NET, .NET Standard 2.0
void Uint64Var(Memory<uint64> p, string name, uint64 value, string usage)
// Island
void Uint64Var(Memory<uint64> p, string name, uint64 value, string usage)
// .NET, .NET Standard 2.0
func Uint64Var(_ p: Memory<uint64>, _ name: string, _ value: uint64, _ usage: string)
// Island
func Uint64Var(_ p: Memory<uint64>, _ name: string, _ value: uint64, _ usage: string)
Parameters:
- p:
- name:
- value:
- usage:
UintVar
// .NET, .NET Standard 2.0
method UintVar(p: Memory<UInt64>; name: string; value: uint; usage: string)
// Island
method UintVar(p: Memory<UInt64>; name: string; value: uint; usage: string)
// .NET, .NET Standard 2.0
void UintVar(Memory<UInt64> p, string name, uint value, string usage)
// Island
void UintVar(Memory<UInt64> p, string name, uint value, string usage)
// .NET, .NET Standard 2.0
func UintVar(_ p: Memory<UInt64>, _ name: string, _ value: uint, _ usage: string)
// Island
func UintVar(_ p: Memory<UInt64>, _ name: string, _ value: uint, _ usage: string)
Parameters:
- p:
- name:
- value:
- usage:
Usage
var Usage: Action;
Action Usage
var Usage: Action
Usage Action
FIELD Usage() As Action
Var
Parameters:
- value:
- name:
- usage:
Visit
method Visit(fn: Action<RemObjects.Elements.System.Memory<go.flag.Flag>>)
void Visit(Action<RemObjects.Elements.System.Memory<go.flag.Flag>> fn)
func Visit(_ fn: Action<RemObjects.Elements.System.Memory<go.flag.Flag>>)
// .NET, .NET Standard 2.0
func Visit(fn Action<RemObjects.Elements.System.Memory<go.flag.Flag>>)
// Island
func Visit(fn Action<RemObjects.Elements.System.Memory<go.flag.Flag>>) void
Sub Visit(fn As Action<RemObjects.Elements.System.Memory<go.flag.Flag>>)
Parameters:
- fn:
VisitAll
method VisitAll(fn: Action<RemObjects.Elements.System.Memory<go.flag.Flag>>)
void VisitAll(Action<RemObjects.Elements.System.Memory<go.flag.Flag>> fn)
func VisitAll(_ fn: Action<RemObjects.Elements.System.Memory<go.flag.Flag>>)
// .NET, .NET Standard 2.0
func VisitAll(fn Action<RemObjects.Elements.System.Memory<go.flag.Flag>>)
// Island
func VisitAll(fn Action<RemObjects.Elements.System.Memory<go.flag.Flag>>) void
Sub VisitAll(fn As Action<RemObjects.Elements.System.Memory<go.flag.Flag>>)
Parameters:
- fn:
Usage
var Usage: Action;
Action Usage
var Usage: Action
Usage Action
FIELD Usage() As Action
constructor
constructor
FlagSet()
init()
Sub New()
constructor (Action, string, Boolean, Map<string, Memory<Flag>>, Map<string, Memory<Flag>>, Slice<string>, ErrorHandling, Writer)
// .NET, .NET Standard 2.0
constructor(aUsage: Action; aname: string; aparsed: Boolean; aactual: Map<string, Memory<Flag>>; aformal: Map<string, Memory<Flag>>; aargs: Slice<string>; aerrorHandling: ErrorHandling; aoutput: Writer)
// Island
constructor(aUsage: Action; aname: string; aparsed: bool; aactual: Map<string, Memory<Flag>>; aformal: Map<string, Memory<Flag>>; aargs: Slice<string>; aerrorHandling: ErrorHandling; aoutput: Writer)
// .NET, .NET Standard 2.0
FlagSet(Action aUsage, string aname, Boolean aparsed, Map<string, Memory<Flag>> aactual, Map<string, Memory<Flag>> aformal, Slice<string> aargs, ErrorHandling aerrorHandling, Writer aoutput)
// Island
FlagSet(Action aUsage, string aname, bool aparsed, Map<string, Memory<Flag>> aactual, Map<string, Memory<Flag>> aformal, Slice<string> aargs, ErrorHandling aerrorHandling, Writer aoutput)
// .NET, .NET Standard 2.0
init(_ aUsage: Action, _ aname: string, _ aparsed: Boolean, _ aactual: Map<string, Memory<Flag>>, _ aformal: Map<string, Memory<Flag>>, _ aargs: Slice<string>, _ aerrorHandling: ErrorHandling, _ aoutput: Writer)
// Island
init(_ aUsage: Action, _ aname: string, _ aparsed: bool, _ aactual: Map<string, Memory<Flag>>, _ aformal: Map<string, Memory<Flag>>, _ aargs: Slice<string>, _ aerrorHandling: ErrorHandling, _ aoutput: Writer)
// .NET, .NET Standard 2.0
Sub New(aUsage As Action, aname As string, aparsed As Boolean, aactual As Map<string, Memory<Flag>>, aformal As Map<string, Memory<Flag>>, aargs As Slice<string>, aerrorHandling As ErrorHandling, aoutput As Writer)
// Island
Sub New(aUsage As Action, aname As string, aparsed As bool, aactual As Map<string, Memory<Flag>>, aformal As Map<string, Memory<Flag>>, aargs As Slice<string>, aerrorHandling As ErrorHandling, aoutput As Writer)
Parameters:
- aUsage:
- aname:
- aparsed:
- aactual:
- aformal:
- aargs:
- aerrorHandling:
- aoutput:
constructor (FlagSet)
Parameters:
- value: