[Ns-bugs] [Bug 561] New: CommandLine::PrintHelp should exit with non-zero return code

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Mon May 4 08:20:54 PDT 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=561

           Summary: CommandLine::PrintHelp should exit with non-zero return
                    code
           Product: ns-3
           Version: ns-3-dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P5
         Component: simulation core
        AssignedTo: ns-bugs at isi.edu
        ReportedBy: gjcarneiro at gmail.com
   Estimated Hours: 0.0


When a ns-3 program is run with bad command-line parameters, it is exiting with
zero exit code, which is obviously wrong.  Minor but annoying problem; easy
fix:

void
CommandLine::PrintHelp (void) const
{
[...]
-  exit (0);
-  exit (1);
}


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Ns-bugs mailing list