Methods

ArgvMatcherΒΆ

ArgvMatcher(option:Str, value:Any, f:Closure)

Sets ARGV matching option.
Source: autoload/ArgvMatcher.ngs:18

option

Option name. The only supported option at this time is "positionals".

value

Option value.

Example

# Any command line argument that is not "allreg" goes to "filters" parameters.
ArgvMatcher('positionals', 'filters') do
F main(filters:Arr, allreg:Bool=false) ...