New version based on ns3's CommandLine.