From 8c84b8be73b24eff88550642aa9523fbb2d7a65d Mon Sep 17 00:00:00 2001 From: "Peter D. Barnes, Jr." Date: Thu, 5 Apr 2018 17:32:03 -0700 Subject: [PATCH] core: bug 2461: CommandLine should handle non-option arguments --- CHANGES.html | 1 + RELEASE_NOTES | 1 + src/core/examples/command-line-example.cc | 31 ++- src/core/model/command-line.cc | 265 +++++++++++++++++----- src/core/model/command-line.h | 101 ++++++++- src/core/test/command-line-test-suite.cc | 51 +++++ 6 files changed, 384 insertions(+), 66 deletions(-) diff --git a/CHANGES.html b/CHANGES.html index 0388a992a..07e8a3f8c 100644 --- a/CHANGES.html +++ b/CHANGES.html @@ -53,6 +53,7 @@ us a note on ns-developers mailing list.


Changes from ns-3.28 to ns-3-dev

New API:

+
  • CommandLine can now handle non-option (positional) arguments.
  • Added CommandLine::Parse (const std::vector> args)
  • NS_LOG_FUNCTION can now log the contents of vectors