From fad5e4cd06b27b29c484dd90a6555d678a3385ab Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 24 Aug 2017 16:42:08 +0200 Subject: [PATCH] Implement --verbose: write the collected reports This is similar to --dump (for now), but will also upload. --- codecov/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/codecov/__init__.py b/codecov/__init__.py index cedb314b..61ab50df 100644 --- a/codecov/__init__.py +++ b/codecov/__init__.py @@ -230,7 +230,7 @@ def main(*argv, **kwargs): debugging = parser.add_argument_group('======================== Debugging ========================') debugging.add_argument('--dump', action="store_true", help="Dump collected data and do not send to Codecov") - debugging.add_argument('-v', '--verbose', action="store_true", help="No comfigured yet") + debugging.add_argument('-v', '--verbose', action="store_true", help="Be verbose, e.g. dump the collected data") debugging.add_argument('--no-color', action="store_true", help="Do not output with color") # Parse Arguments @@ -700,6 +700,10 @@ def main(*argv, **kwargs): write('==> Uploading') write(' .url ' + codecov.url) write(' .query ' + remove_token('token=', urlargs)) + if codecov.verbose: + write('-------------------- Reports --------------------') + write(reports) + write('-------------------------------------------------') s3 = None trys = 0