Bug 1972 - CommandLine duplicate argument handling
CommandLine duplicate argument handling
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
pre-release
PC Linux
: P5 enhancement
Assigned To: Peter Barnes
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-03 09:42 EDT by Tom Henderson
Modified: 2016-03-08 14:29 EST (History)
1 user (show)

See Also:


Attachments
documentation to clarify the behavior with repeated argument (2.18 KB, patch)
2014-09-12 18:14 EDT, Peter Barnes
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2014-09-03 09:42:46 EDT
Described in this thread.

http://mailman.isi.edu/pipermail/ns-developers/2014-September/012228.html

Either documentation patch or patch to prevent the problem.

I would propose that a duplicate argument would trigger an NS_FATAL_ERROR(msg).
Comment 1 Peter Barnes 2014-09-12 18:14:51 EDT
Created attachment 1875 [details]
documentation to clarify the behavior with repeated argument
Comment 2 Tom Henderson 2014-09-15 17:38:23 EDT
I pushed the documentation patch in changeset 10953:6751a4094ffd; do we want to leave this bug open for further work, or close it now?
Comment 3 Peter Barnes 2015-11-11 23:34:43 EST
Last call.  

Updated docs here:
https://www.nsnam.org/docs/release/3.24/doxygen/classns3_1_1_command_line.html#details

Note the verbiage beginning:
"Arguments can be repeated on the command line; the last value given will be the final value used. For example,"