-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
ns-3-python-examples/tcp/tcp-bulk-send.py
Line 47 in 8ee504f
| cmd.Parse (sys.argv) |
In the example, the main function takes an argument argv, to which sys.argv is passed during runtime. However the argv variable is never used in the program and the cmd.Parse is again supplied with sys.argv itself.
I feel this would be confusing to a user reading the code.
Suggestions:
- Remove the
argvoption from main.import sysglobally on top. Callcmd.Parsewithsys.argv. - Call
cmd.Parsewithargv.
I feel Option 2 would make the program much more readable.
Metadata
Metadata
Assignees
Labels
No labels