Ticket #254 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

Added sys.args to load a file

Reported by: luis Owned by: nopper
Priority: low Milestone:
Component: PacketManipulator Version: current svn
Keywords: manipulator pcap sys.args args Cc:

Description

Actually PacketManipulator doesn't have any sys.args.

What I'm proposing it's add something like: ./PacketManipulator file.pcap

And the file should be opened.

It's very useful to use with gns3.

Change History

Changed 4 years ago by gpolo

  • milestone Umit 1.0beta2 deleted

Changed 4 years ago by cassiano

What you think about to use optparse instead? sys.args doesn't bring any help options. You will supose that user know what he have to do.

What I'm thinking is:

./PacketManipulator -f file.pcap

./PacketManipulator -h (to help)

Changed 4 years ago by nopper

Yeah obviously this ticket is a reminder. I've asked luis to create ticket so I can remember to add this feature.

Obviously the implementation will be done using optparse module.

Btw thanks for the note.

Changed 4 years ago by getxsick

I can do it if you need, obviously it's easy and quick. Obviously :)

Changed 4 years ago by nopper

Don't worry for it. It will be done ASAP.

Changed 4 years ago by getxsick

Obviously ;)

Changed 4 years ago by nopper

  • status changed from new to closed
  • resolution set to fixed

Obviously fixed from r4569.

Note: See TracTickets for help on using tickets.