feat: Move analytics arguments to their own section

This commit is contained in:
Paul Gauthier (aider) 2024-08-13 07:23:46 -07:00
parent 8a21eb7804
commit 1c321df457

View file

@ -436,6 +436,25 @@ def get_parser(default_config_files, git_root):
)
##########
group = parser.add_argument_group("Analytics Settings")
group.add_argument(
"--analytics",
action=argparse.BooleanOptionalAction,
default=False,
help="Enable/disable analytics tracking (default: True)",
)
group.add_argument(
"--analytics-log",
metavar="ANALYTICS_LOG_FILE",
help="Specify a file to log analytics events",
)
group.add_argument(
"--analytics-disable",
action="store_true",
help="Disable analytics tracking and mark as disabled in mixpanel.json",
default=False,
)
group = parser.add_argument_group("Other Settings")
group.add_argument(
"--file",
@ -555,23 +574,6 @@ def get_parser(default_config_files, git_root):
help="Run aider in your browser",
default=False,
)
group.add_argument(
"--analytics",
action=argparse.BooleanOptionalAction,
default=False,
help="Enable/disable analytics tracking (default: True)",
)
group.add_argument(
"--analytics-log",
metavar="ANALYTICS_LOG_FILE",
help="Specify a file to log analytics events",
)
group.add_argument(
"--analytics-disable",
action="store_true",
help="Disable analytics tracking and mark as disabled in mixpanel.json",
default=False,
)
return parser