Skip to content

Commit

Permalink
packetblaster: Refactor usage into README
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed Feb 22, 2015
1 parent 9fd2851 commit 7179e19
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
9 changes: 9 additions & 0 deletions src/program/packetblaster/README
@@ -0,0 +1,9 @@
Usage: packetblaster <PCAP-FILE> <PCI>...

Transmit packets from PCAP-FILE continuously to one or more network
adapters. The PCI arguments are Lua pattern strings that are used to
match the network adapters to use.

Examples:
packetblaster myfile.cap 0000:01:00.0
packetblaster myfile.cap 01:00
1 change: 1 addition & 0 deletions src/program/packetblaster/README.inc
10 changes: 1 addition & 9 deletions src/program/packetblaster/packetblaster.lua
Expand Up @@ -15,15 +15,7 @@ local C = ffi.C

function run (args)
if #args < 2 then
print([[Usage: packetblaster <PCAP-FILE> <PCI>...
Transmit packets from PCAP-FILE continuously to one or more network
adapters. The PCI arguments are Lua pattern strings that are used to
match the network adapters to use.
Examples:
packetblaster myfile.cap 0000:01:00.0
packetblaster myfile.cap 01:00]])
print(require("program.packetblaster.README_inc"))
os.exit(1)
end
local filename = table.remove(args, 1)
Expand Down

0 comments on commit 7179e19

Please sign in to comment.