Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005827OCamlstandard librarypublic2012-11-15 06:052013-06-13 18:41
Assigned Todoligez 
PrioritynormalSeverityfeatureReproducibilityhave not tried
PlatformOSOS Version
Product Version 
Target Version4.01.0+devFixed in Version4.01.0+dev 
Summary0005827: provide a dynamic command line parsing mechanism
DescriptionThe 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
TagsNo tags attached.
Attached Filespatch file icon arg.patch [^] (2,542 bytes) 2012-11-15 06:05 [Show Content]

- Relationships

-  Notes
gasche (administrator)
2013-06-06 10:47

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.
doligez (administrator)
2013-06-13 18:41

patch applied to trunk(4.01.0) : rev 13772

- Issue History
Date Modified Username Field Change
2012-11-15 06:05 hongboz New Issue
2012-11-15 06:05 hongboz File Added: arg.patch
2013-06-06 10:47 gasche Note Added: 0009419
2013-06-06 15:34 doligez Assigned To => doligez
2013-06-06 15:34 doligez Status new => assigned
2013-06-06 15:35 doligez Severity minor => feature
2013-06-06 15:35 doligez Target Version => 4.01.0+dev
2013-06-13 18:41 doligez Note Added: 0009482
2013-06-13 18:41 doligez Status assigned => closed
2013-06-13 18:41 doligez Resolution open => fixed
2013-06-13 18:41 doligez Fixed in Version => 4.01.0+dev
2017-02-23 16:43 doligez Category OCaml standard library => standard library

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker