iwla

iwla Commit Details

Date:2014-12-14 15:46:01 (6 years 7 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:2ab98c4090d5523aedcf762c4a54f63067ca1f28
Parents: c221c813bf26b8d7702a248c848b2b4d43591792
Message:Add -f paramter

Changes:
Miwla.py (2 diffs)

File differences

iwla.py
623623
624624
625625
626
627
628
626629
627630
628631
......
638641
639642
640643
641
642
644
645
646
643647
644
648
645649
default=False,
help='Read data from stdin instead of conf.analyzed_filename')
parser.add_argument('-f', '--file', dest='file',
help='Analyse this log file')
args = parser.parse_args()
if args.clean_output:
if args.stdin:
iwla.start(sys.stdin)
else:
if not os.path.exists(conf.analyzed_filename):
print 'No such file \'%s\'' % (conf.analyzed_filename)
filename = args.file or conf.analyzed_filename
if not os.path.exists(filename):
print 'No such file \'%s\'' % (filename)
sys.exit(-1)
with open(conf.analyzed_filename) as f:
with open(filename) as f:
iwla.start(f)

Archive Download the corresponding diff file

Branches

Tags