[Ns-bugs] [Bug 99] New: CommandLine::Parse --help option is way too verbose

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Wed Oct 31 06:36:38 PDT 2007


http://www.nsnam.org/bugzilla/show_bug.cgi?id=99

           Summary: CommandLine::Parse --help option is way too verbose
           Product: ns-3
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: simulation core
        AssignedTo: ns-bugs at isi.edu
        ReportedBy: mathieu.lacage at sophia.inria.fr


We really need to add some grouping support to that thing. I would like to
propose the following strategy:

1) make --help not output anything about all the registered defaultvalues.
Output help only for the user-registered values.

2) introduce a set of macros:
DEFAULT_VALUE_GROUP_DEFINE ("Wifi");
DEFAULT_VALUE_GROUP_ADD ("Wifi", "WifiRtsCtsThreshold");
DEFAULT_VALUE_GROUP_ADD ("Wifi", "WifiFragmentationThreshold");
...

this would create a --help-Wifi option which would be displayed by default and
the --help-Wifi option would further display all the options registered in the
'Wifi' group.

I have not given much thinking to the implementation and I am sure that other
APIs could be used. But I suspect that this would go a long way towards making
the CommandLine thing useful. It would also be nice to use it to classify the
options in the introspected output I have implemented in the ns-3-wifi branch.


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Ns-bugs mailing list