mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2025-12-26 09:31:11 +01:00
don't use a global variable, pass the args instead
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
from github_backup import max_retries
|
||||
|
||||
from github_backup.github_backup import (
|
||||
backup_account,
|
||||
@@ -40,7 +39,6 @@ logging.basicConfig(level=logging.INFO, handlers=[stdout_handler, stderr_handler
|
||||
def main():
|
||||
"""Main entry point for github-backup CLI."""
|
||||
args = parse_args()
|
||||
max_retries.MAX_RETRIES = args.max_retries
|
||||
|
||||
if args.private and not get_auth(args):
|
||||
logger.warning(
|
||||
|
||||
Reference in New Issue
Block a user