You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use cligen in a more flexible way as follows:
procfoobar(foo=1, bar=2.0, baz="hi", verb=false, paths: seq[string]): int=...dispathAs(foobar, foobarMain)
# creates `proc foobarMain*(args: seq[string]): int` ; this can be called eg via: foobarMain(["-f:3", "--baz:mybaz"])
it adds flexibility to integrate in more complex libraries, eg when args are provided from another source (could be forwarded from post processed command line or from any other source)
Hopefully this is a simple change
The text was updated successfully, but these errors were encountered:
/cc @c-blake
I'd like to use cligen in a more flexible way as follows:
it adds flexibility to integrate in more complex libraries, eg when args are provided from another source (could be forwarded from post processed command line or from any other source)
Hopefully this is a simple change
The text was updated successfully, but these errors were encountered: