fix: Disable analytics by default and provide option to enable

This commit is contained in:
Paul Gauthier 2024-08-13 08:08:05 -07:00 committed by Paul Gauthier (aider)
parent 4ebbfa01b7
commit aeadf2f139
3 changed files with 20 additions and 6 deletions

View file

@ -334,6 +334,11 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
# Parse again to include any arguments that might have been defined in .env
args = parser.parse_args(argv)
if args.analytics_disable:
analytics = Analytics(track=False, disable=True)
print("Analytics have been permanently disabled.")
return
if not args.verify_ssl:
import httpx