From 73919037595fff7277404a1e62af962c1333db65 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 18 May 2024 20:57:01 -0700 Subject: [PATCH] Removed redundant lint command option and added support for specifying lint commands for different languages. --- aider/args.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/aider/args.py b/aider/args.py index 1d7d3fc51..018e42ca6 100644 --- a/aider/args.py +++ b/aider/args.py @@ -14,15 +14,6 @@ def get_parser(default_config_files, git_root): config_file_parser_class=configargparse.YAMLConfigFileParser, auto_env_var_prefix="AIDER_", ) - - ########## - group = parser.add_argument_group("Lint Settings") - group.add_argument( - "--lint-cmd", - action="append", - metavar="LINT_CMD", - help="Specify a lint command to run. Can be specified multiple times.", - ) ########## group = parser.add_argument_group("Main") @@ -321,11 +312,17 @@ def get_parser(default_config_files, git_root): default=False, ) group.add_argument( - "--lint-and-commit", + "--lint", action="store_true", help="Commit, run the linter on all dirty files, fix problems and commit again", default=False, ) + group.add_argument( + "--lint-cmd", + action="append", + help='Specify lint commands to run for different languages, eg: "python: flake8 --select=..." (can be used multiple times)', + ) + ########## group = parser.add_argument_group("Other Settings")