Closed this issue 8 years ago · 2 comments
We should add some support for filtering placeholder and option values like this:
base add <offset:int> [--wait[=<timeout:float>]]
We should probably supply some common default filters and also provide an interface to define custom filter functions.
For the reference: Filtering may sometimes also be avoided by using preset option values via #6/#17.
The tokenizer/parser will be updated via #17 to use the ArgumentToken also for options like above. This means they now share quite a bit of code, so adding filtering to the ArgumentToken should be sufficient here.
ArgumentToken