Bug 1972

Summary: CommandLine duplicate argument handling
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: coreAssignee: Peter Barnes <pdbarnes>
Status: RESOLVED FIXED    
Severity: enhancement CC: ns-bugs
Priority: P5    
Version: pre-release   
Hardware: PC   
OS: Linux   
Attachments: documentation to clarify the behavior with repeated argument

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,"