Bug 2901 - Add CommandLine::Parse (const std::vector<std::string>> args);
Add CommandLine::Parse (const std::vector<std::string>> args);
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
ns-3-dev
All All
: P3 enhancement
Assigned To: Peter Barnes
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-21 13:49 UTC by Peter Barnes
Modified: 2018-04-03 17:53 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Barnes 2018-03-21 13:49:07 UTC
Drew_drw on the users list:
https://groups.google.com/forum/#!topic/ns-3-users/jS1JsF_N3ts

posted a snippet where he constructs an arg vector of strings, then calls Parse.  To do that he has to convert the vector to a C array of C-strings, yuck.

Implementing this should be trivial...
Comment 1 Peter Barnes 2018-04-03 17:53:33 UTC
Pushed in r13462 (691e29d1)