mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 03:35:00 +00:00
chore: Reorganize command-line arguments in aider/args.py
This commit is contained in:
parent
5779006db0
commit
f2397bb0cc
1 changed files with 16 additions and 16 deletions
|
@ -506,22 +506,6 @@ def get_parser(default_config_files, git_root):
|
||||||
version=f"%(prog)s {__version__}",
|
version=f"%(prog)s {__version__}",
|
||||||
help="Show the version number and exit",
|
help="Show the version number and exit",
|
||||||
)
|
)
|
||||||
|
|
||||||
##########
|
|
||||||
group = parser.add_argument_group("Voice Settings")
|
|
||||||
group.add_argument(
|
|
||||||
"--voice-format",
|
|
||||||
metavar="VOICE_FORMAT",
|
|
||||||
default="wav",
|
|
||||||
choices=["wav", "mp3", "webm"],
|
|
||||||
help="Audio format for voice recording (default: wav). webm and mp3 require ffmpeg",
|
|
||||||
)
|
|
||||||
group.add_argument(
|
|
||||||
"--voice-language",
|
|
||||||
metavar="VOICE_LANGUAGE",
|
|
||||||
default="en",
|
|
||||||
help="Specify the language for voice using ISO 639-1 code (default: auto)",
|
|
||||||
)
|
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"--just-check-update",
|
"--just-check-update",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
|
@ -630,6 +614,22 @@ def get_parser(default_config_files, git_root):
|
||||||
help="Enable/disable suggesting shell commands (default: True)",
|
help="Enable/disable suggesting shell commands (default: True)",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
##########
|
||||||
|
group = parser.add_argument_group("Voice Settings")
|
||||||
|
group.add_argument(
|
||||||
|
"--voice-format",
|
||||||
|
metavar="VOICE_FORMAT",
|
||||||
|
default="wav",
|
||||||
|
choices=["wav", "mp3", "webm"],
|
||||||
|
help="Audio format for voice recording (default: wav). webm and mp3 require ffmpeg",
|
||||||
|
)
|
||||||
|
group.add_argument(
|
||||||
|
"--voice-language",
|
||||||
|
metavar="VOICE_LANGUAGE",
|
||||||
|
default="en",
|
||||||
|
help="Specify the language for voice using ISO 639-1 code (default: auto)",
|
||||||
|
)
|
||||||
|
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue