docs: Prepare version 0.1.0 release notes
Change-Id: If3a00751ed5aef36b76c2af653f0fe7b71fc7efd
diff --git a/bin/minindn b/bin/minindn
index af4be4d..0b8af79 100755
--- a/bin/minindn
+++ b/bin/minindn
@@ -79,6 +79,8 @@
from ndn.nlsr import Nlsr, NlsrConfigGenerator
from ndn.nfd import Nfd
+VERSION_NUMBER = "0.1.0"
+
def printExperimentNames():
experimentNames = ExperimentManager.getExperimentNames()
@@ -86,6 +88,10 @@
for experiment in experimentNames:
print " %s" % experiment
+def printVersion(option, opt, value, parser):
+ print "Mini-NDN v%s" % VERSION_NUMBER
+ sys.exit()
+
def parse_args():
usage="""Usage: minindn [template_file] [ -t | --testbed ]
If no template_file is given, ndn_utils/default-topology.conf (given sample file)
@@ -122,6 +128,9 @@
parser.add_option("--no-cli", action="store_false", dest="isCliEnabled",
help="Run experiments and exit without showing the command line interface")
+ parser.add_option('--version', '-V', action='callback', callback=printVersion,
+ help='Displays version information')
+
(options, arg) = parser.parse_args()
testbed = options.testbed