Skip to content

Commit

Permalink
[V3] Implement --dry-run flag (#1648)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobotimus authored and Kowlin committed May 28, 2018
1 parent 014e3ba commit 706b046
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions redbot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def main():
log.critical("Token and prefix must be set in order to login.")
sys.exit(1)
loop.run_until_complete(_get_prefix_and_token(red, tmp_data))

if cli_flags.dry_run:
loop.run_until_complete(red.http.close())
sys.exit(0)
if tmp_data["enable_sentry"]:
red.enable_sentry()
cleanup_tasks = True
Expand Down

0 comments on commit 706b046

Please sign in to comment.