Command of the argument.
Options for the argument.
The command this argument belongs to.
The default value of the argument or a function supplying the default value.
Description of the command.
The string(s) to use for flag or option match.
The index to start from.
The amount of phrases to match for rest, separate, content, or text match.
The method to match text.
Function to modify otherwise content.
Whether to process multiple option flags instead of just the first.
The content or function supplying the content sent when argument parsing fails.
The prompt options.
The type to cast to or a function to use to cast.
Whether or not the argument is unordered.
The client.
The command handler.
Casts a phrase to this argument's type.
Message that called the command.
Phrase to process.
Collects input from the user by prompting.
Message to prompt.
Previous input from command if there was one.
Previous parsed input from command if there was one.
Processes the type casting and prompting of the argument for a phrase.
The message that called the command.
The phrase to process.
Static
castCasts a phrase to this argument's type.
The type to cast to.
The type resolver.
Message that called the command.
Phrase to process.
Casts a phrase to this argument's type.
The type to cast to.
The type resolver.
Message that called the command.
Phrase to process.
Casts a phrase to this argument's type.
The type to cast to.
The type resolver.
Message that called the command.
Phrase to process.
Static
composeCreates a type that is the left-to-right composition of the given types. If any of the types fails, the entire composition fails.
Types to use.
Creates a type that is the left-to-right composition of the given types. If any of the types fails, the entire composition fails.
Types to use.
Creates a type that is the left-to-right composition of the given types. If any of the types fails, the entire composition fails.
Types to use.
Static
composeCreates a type that is the left-to-right composition of the given types. If any of the types fails, the composition still continues with the failure passed on.
Types to use.
Creates a type that is the left-to-right composition of the given types. If any of the types fails, the composition still continues with the failure passed on.
Types to use.
Creates a type that is the left-to-right composition of the given types. If any of the types fails, the composition still continues with the failure passed on.
Types to use.
Static
isStatic
productCreates a type from multiple types (product type). Only inputs where each type resolves with a non-void value are valid.
Types to use.
Creates a type from multiple types (product type). Only inputs where each type resolves with a non-void value are valid.
Types to use.
Creates a type from multiple types (product type). Only inputs where each type resolves with a non-void value are valid.
Types to use.
Static
rangeCreates a type where the parsed value must be within a range.
The type to use.
Minimum value.
Maximum value.
Optional
inclusive: booleanWhether or not to be inclusive on the upper bound.
Creates a type where the parsed value must be within a range.
The type to use.
Minimum value.
Maximum value.
Optional
inclusive: booleanWhether or not to be inclusive on the upper bound.
Creates a type where the parsed value must be within a range.
The type to use.
Minimum value.
Maximum value.
Optional
inclusive: booleanWhether or not to be inclusive on the upper bound.
Static
taggedCreates a type that parses as normal but also tags it with some data.
Result is in an object { tag, value }
and wrapped in Flag.fail
when failed.
The type to use.
Optional
tag: anyTag to add. Defaults to the type
argument, so useful if it is a string.
Creates a type that parses as normal but also tags it with some data.
Result is in an object { tag, value }
and wrapped in Flag.fail
when failed.
The type to use.
Optional
tag: anyTag to add. Defaults to the type
argument, so useful if it is a string.
Creates a type that parses as normal but also tags it with some data.
Result is in an object { tag, value }
and wrapped in Flag.fail
when failed.
The type to use.
Optional
tag: anyTag to add. Defaults to the type
argument, so useful if it is a string.
Static
taggedCreates a type from multiple types (union type).
The first type that resolves to a non-void value is used.
Each type will also be tagged using tagged
with themselves.
Types to use.
Creates a type from multiple types (union type).
The first type that resolves to a non-void value is used.
Each type will also be tagged using tagged
with themselves.
Types to use.
Creates a type from multiple types (union type).
The first type that resolves to a non-void value is used.
Each type will also be tagged using tagged
with themselves.
Types to use.
Static
taggedCreates a type that parses as normal but also tags it with some data and carries the original input.
Result is in an object { tag, input, value }
and wrapped in Flag.fail
when failed.
The type to use.
Optional
tag: anyTag to add. Defaults to the type
argument, so useful if it is a string.
Creates a type that parses as normal but also tags it with some data and carries the original input.
Result is in an object { tag, input, value }
and wrapped in Flag.fail
when failed.
The type to use.
Optional
tag: anyTag to add. Defaults to the type
argument, so useful if it is a string.
Creates a type that parses as normal but also tags it with some data and carries the original input.
Result is in an object { tag, input, value }
and wrapped in Flag.fail
when failed.
The type to use.
Optional
tag: anyTag to add. Defaults to the type
argument, so useful if it is a string.
Static
unionCreates a type from multiple types (union type). The first type that resolves to a non-void value is used.
Types to use.
Creates a type from multiple types (union type). The first type that resolves to a non-void value is used.
Types to use.
Creates a type from multiple types (union type). The first type that resolves to a non-void value is used.
Types to use.
Static
validateCreates a type with extra validation. If the predicate is not true, the value is considered invalid.
The type to use.
The predicate function.
Creates a type with extra validation. If the predicate is not true, the value is considered invalid.
The type to use.
The predicate function.
Creates a type with extra validation. If the predicate is not true, the value is considered invalid.
The type to use.
The predicate function.
Static
withCreates a type that parses as normal but also carries the original input.
Result is in an object { input, value }
and wrapped in Flag.fail
when failed.
The type to use.
Creates a type that parses as normal but also carries the original input.
Result is in an object { input, value }
and wrapped in Flag.fail
when failed.
The type to use.
Creates a type that parses as normal but also carries the original input.
Result is in an object { input, value }
and wrapped in Flag.fail
when failed.
The type to use.
Represents an argument for a command.