Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorbenni347 <64905406+benni347@users.noreply.github.com>2022-10-02 22:10:04 +0200
committerGitHub <noreply@github.com>2022-10-02 22:10:04 +0200
commit4a5d38ff8a6615e837a5795abb1096a7360cfdc1 (patch)
tree15fd3a139c8cacc4e41b8eef62474e87a5015a0a /archinstall
parent53a2797af6ac0832bf7dd00dfe96b8ea1867db2e (diff)
Fixed spelling mistakes (#1496)
* Fixed spelling mistakes * Fixed the spelling of JSON so it comforms to the offical spelling of it.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/__init__.py8
1 files changed, 4 insertions, 4 deletions
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):