The ns-3 Network Simulator Project

Change the usage of optparse to argparse in bake

Bake is an installation helper of ns-3 written in python. The codebase still uses the deprecated 'optparse' module for interacting with command line arguments. The task is to change the usage of optparse in the codebase to argparse.

The student is expected to do the following:

  1. Clone the bake code.
  2. Find and understand the usage of the optparse library.
  3. Replace the reference with the new argparse library.
  4. Submit a patch for evaluation.

Please note that the patch will be accepted if the following two commands gives the same output before and after the patch:

  1. python bake.py -h
  2. python bake.py configure -h

The student can hence use these commands for testing purposes.

Task tags

  • python
  • bake
  • parsing

Students who completed this task

Kr0n0s, hax0kartik, pterp, howie

Task type

  • code Code
  • done_all Quality Assurance
close

2019