Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide a dynamic command line parsing mechanism #5827

vicuna opened this Issue Nov 15, 2012 · 2 comments


None yet
2 participants
Copy link

vicuna commented Nov 15, 2012

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


This comment has been minimized.

Copy link
Collaborator Author

vicuna commented Jun 6, 2013

Comment author: @gasche

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

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.


This comment has been minimized.

Copy link
Collaborator Author

vicuna commented Jun 13, 2013

Comment author: @damiendoligez

patch applied to trunk(4.01.0) : rev 13772

@vicuna vicuna closed this Jun 13, 2013

@vicuna vicuna added the stdlib label Mar 14, 2019

@vicuna vicuna added this to the 4.01.0 milestone Mar 14, 2019

@vicuna vicuna added the feature-wish label Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.