Skip to content

Commit

Permalink
Improve the description about range_tester
Browse files Browse the repository at this point in the history
  • Loading branch information
petershintech authored and carlobaldassi committed Sep 26, 2021
1 parent 2681896 commit f1eaaf9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/src/arg_table.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ This is the list of all available settings:
and the option argument is not provided.
* `required` (default = `false`): determines if an argument is required (this setting is ignored by flags, which are always
optional, and in general should be avoided for options if possible).
* `range_tester` (default = `x->true`): a function returning a `Bool` value which tests whether an argument is allowed (e.g.
you could use `arg_type = Integer` and `range_tester = isodd` to allow only odd integer values)
* `range_tester` (default = `x->true`): a function returning `true` if an argument is allowed and otherwise returning `false` (e.g. you could use `arg_type = Integer` and `range_tester = isodd` to allow only odd integer values)
* `dest_name` (default = auto-generated): the key which will be associated with the argument in the `Dict` object returned by
`parse_args`. The auto-generation rules are explained in the [Argument names](@ref) section. Multiple arguments can share
the same destination, provided their actions and types are compatible.
Expand Down

0 comments on commit f1eaaf9

Please sign in to comment.