CommandLine: add Usage message, simplify bool args

Accept obvious bool arguments:  --arg --arg=t --arg=true
Get program name from argv[0]
Example program
Doxygenate
This commit is contained in:
Peter D. Barnes, Jr.
2013-06-14 13:54:39 -07:00
parent 42c055f11b
commit 744b0617a5
5 changed files with 410 additions and 84 deletions

View File

@@ -29,6 +29,10 @@ def build(bld):
['core'])
obj.source = 'sample-random-variable-stream.cc'
obj = bld.create_ns3_program('command-line-example',
['core'])
obj.source = 'command-line-example.cc'
if bld.env['ENABLE_THREADING'] and bld.env["ENABLE_REAL_TIME"]:
obj = bld.create_ns3_program('main-test-sync', ['network'])
obj.source = 'main-test-sync.cc'