Move new args to Other section

This commit is contained in:
Paul Gauthier 2024-07-31 10:53:34 -03:00
parent 928c094b42
commit b15e96a7b0

View file

@ -31,12 +31,6 @@ def get_parser(default_config_files, git_root):
group.add_argument(
"files", metavar="FILE", nargs="*", help="files to edit with an LLM (optional)"
)
group.add_argument(
"--file",
action="append",
metavar="FILE",
help="specify a file to edit (can be used multiple times)",
)
group.add_argument(
"--openai-api-key",
metavar="OPENAI_API_KEY",
@ -355,6 +349,12 @@ def get_parser(default_config_files, git_root):
default=False,
help="Prefix commit messages with 'aider: ' (default: False)",
)
group.add_argument(
"--commit",
action="store_true",
help="Commit all pending changes with a suitable commit message, then exit",
default=False,
)
group.add_argument(
"--commit-prompt",
metavar="PROMPT",
@ -367,12 +367,6 @@ def get_parser(default_config_files, git_root):
help="Perform a dry run without modifying files (default: False)",
)
group = parser.add_argument_group("Fixing and committing")
group.add_argument(
"--commit",
action="store_true",
help="Commit all pending changes with a suitable commit message, then exit",
default=False,
)
group.add_argument(
"--lint",
action="store_true",
@ -414,6 +408,12 @@ def get_parser(default_config_files, git_root):
##########
group = parser.add_argument_group("Other Settings")
group.add_argument(
"--file",
action="append",
metavar="FILE",
help="specify a file to edit (can be used multiple times)",
)
group.add_argument(
"--vim",
action="store_true",