Permalink
Browse files

possibile to print the report and not generate it

  • Loading branch information...
maaaaz
maaaaz committed Jul 31, 2012
1 parent c418102 commit f7aa2b1ac2b511707d98d41ee1bacb68c6785bca
Showing with 5 additions and 1 deletion.
  1. +5 −1 androwarn.py
View
@@ -78,7 +78,10 @@ def main(options, arguments) :
# Report Type
if (options.report != None) and (options.report in REPORT_TYPE) :
+ report_wanted = True
report = options.report
+ elif (options.report == None) and (options.display_report != None) :
+ report_wanted = False
else :
parser.error("Please specify a valid report type")
@@ -99,7 +102,8 @@ def main(options, arguments) :
# Brace yourself, a massive dump is coming
dump_analysis_results(data,sys.stdout)
- generate_report(package_name, data, verbosity, report)
+ if report_wanted :
+ generate_report(package_name, data, verbosity, report)
if __name__ == "__main__" :
parser = OptionParser()

0 comments on commit f7aa2b1

Please sign in to comment.