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
Original bug ID: 5827 Reporter:@bobzhang Assigned to:@damiendoligez Status: closed (set by @damiendoligez on 2013-06-13T16:41:25Z) Resolution: fixed Priority: normal Severity: feature Target version: 4.01.0+dev Fixed in version: 4.01.0+dev Category: standard library
Bug description
The current Arg module can not support extending the parsing arguments dynamically.
For example:
binary -f -g -h
when -f take effect, it can update the specific list, which tells how to understand -g and -h, etc.
The change is minimal.
Adding 2(!) to spec_list is enough, for back-ward compatibility, I add two wrappers. This feature is very useful to write a wrapper of another executable to support extra command line options
In general I'd say that we don't want fancy new features in Arg, and that for more flexibility an outside library should be used, such that the excellent cmdliner http://erratique.ch/software/cmdliner
That said, it's true that this change really is minimal, so it doesn't hurt much to include it. I would be in favor of taking it in.
Original bug ID: 5827
Reporter: @bobzhang
Assigned to: @damiendoligez
Status: closed (set by @damiendoligez on 2013-06-13T16:41:25Z)
Resolution: fixed
Priority: normal
Severity: feature
Target version: 4.01.0+dev
Fixed in version: 4.01.0+dev
Category: standard library
Bug description
The current Arg module can not support extending the parsing arguments dynamically.
For example:
binary -f -g -h
when -f take effect, it can update the specific list, which tells how to understand -g and -h, etc.
The change is minimal.
Adding 2(!) to spec_list is enough, for back-ward compatibility, I add two wrappers. This feature is very useful to write a wrapper of another executable to support extra command line options
File attachments
The text was updated successfully, but these errors were encountered: