Fixed grammar under function "get_arguments" (#3152)

This commit is contained in:
DrakeCoding 2025-01-31 03:24:51 +00:00 committed by GitHub
parent ae3f59ccae
commit 71a6c84df0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ def get_arguments() -> dict[str, Any]:
0) we create a dict to store the arguments and their values
1) preprocess.
We take those arguments which use JSON files, and read them into the argument dict. So each first level entry
becomes a argument on it's own right
becomes an argument on its own right
2) Load.
We convert the predefined argument list directly into the dict via the vars() function. Non specified arguments
are loaded with value None or false if they are booleans (action="store_true"). The name is chosen according to
@ -182,7 +182,7 @@ def get_arguments() -> dict[str, Any]:
then load all the undefined arguments. In this case the names are taken as written.
Important. This way explicit command line arguments take precedence over configuration files.
3) Amend
Change whatever is needed on the configuration dictionary (it could be done in post_process_arguments but this
Change whatever is needed on the configuration dictionary (it could be done in post_process_arguments but this
ougth to be left to changes anywhere else in the code, not in the arguments dictionary
"""
config: dict[str, Any] = {}