fix command line parsing

This commit is contained in:
matthias.ringwald@gmail.com 2014-11-07 15:24:24 +00:00
parent a9aa8324cd
commit e2b9f4ac0f

View File

@ -72,6 +72,7 @@ if len(sys.argv) == 1:
print 'Converted hci_dump.pklg can be viewed with Wireshark and OS X PacketLogger'
exit(0)
infile = sys.argv[1]
outfile = 'hci_dump.pklg'
if len(sys.argv) > 2:
outfile = sys.argv[2]