Lines Matching refs:is
7 long term goal is eventually for all `art` command-line tools to be using these helpers.
69 In the above code sample, we define a parser which is capable of parsing something like `--help
72 (invalid argument), neither will `--apple:fruit` (fruit is not an int) nor `--orange:1234` (1234 is
88 After an argument definition is provided, the parser builder needs to know what type the argument
89 will be in order to provide the type safety and make sure the rest of the argument definition is
90 correct as early as possible (in essence, everything but the parsing of the argument name is done at
93 Everything that follows a `WithType<T>()` call is thus type checked to only take `T` values.
95 If this call is omitted, the parser generator assumes you are building a `Unit` type (i.e. an
99 Some values will not make sense outside of a `[min, max]` range, so this is an option to quickly add
100 a range check without writing custom code. The range check is performed after the main parsing
116 This is meant to be another shorthand (like `WithRange`) to avoid writing a custom type parser. In
132 (Note that this method will not work when the argument definitions have a wildcard because there is
136 By default, the argument is assumed to appear exactly once, and if the user specifies it more than
137 once, only the latest value is taken into account (and all previous occurrences of the argument are
154 Currently, only `IntoKey` is supported, but that may change in the future.
157 This specifies that when a value is parsed, it will get saved into a variant map using the specific
166 where `ParsedValue` is an imaginary function that parses the `-help` argment into a specific type
170 This is highly discouraged, but for compatibility with `JNI` which allows argument ignores, there is
171 an option to ignore any argument tokens that are not known to the parser. This is done with the
180 static interface provided by `CmdlineTypeParser`. It is recommended to inherit from
208 // note: Name() is just here for more user-friendly errors,
230 #### What is a `Result`?
231 `Result` is a typedef for `CmdlineParseResult<T>` and it acts similar to a poor version of
242 When many arguments are parsed, the result is collapsed down to a `CmdlineResult` which acts as a