From 4a5d38ff8a6615e837a5795abb1096a7360cfdc1 Mon Sep 17 00:00:00 2001 From: benni347 <64905406+benni347@users.noreply.github.com> Date: Sun, 2 Oct 2022 22:10:04 +0200 Subject: Fixed spelling mistakes (#1496) * Fixed spelling mistakes * Fixed the spelling of JSON so it comforms to the offical spelling of it. --- archinstall/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'archinstall/__init__.py') diff --git a/archinstall/__init__.py b/archinstall/__init__.py index 44852d4c..108e51b2 100644 --- a/archinstall/__init__.py +++ b/archinstall/__init__.py @@ -156,18 +156,18 @@ def get_arguments() -> Dict[str, Any]: Is done on following steps: 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 un it's own right + 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 2) Load. - We convert the predefined argument list directly into the dict vía the vars() función. Non specified arguments are loaded with value None or false if they are booleans (action="store_true"). + 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 argparse conventions. See above (the first text is used as argument name, but underscore substitutes dash) We 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 configuración files. + 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 ougth to be left to changes anywhere else in the code, not in the arguments dictionary """ config = {} args, unknowns = parser.parse_known_args() - # preprocess the json files. + # preprocess the JSON files. # TODO Expand the url access to the other JSON file arguments ? if args.config is not None: if not json_stream_to_structure('--config', args.config, config): -- cgit v1.2.3-70-g09d2