Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/__init__.py
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-11-02 17:50:52 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2022-11-02 17:50:52 +0100
commitb855d44b65a63e457e4d9d91fec98c092169b706 (patch)
tree5d99cfba75d555fff46dc1b797384adc6f206488 /archinstall/__init__.py
parent1145c3ff544846dfee971539bcbc6aed02f83cc6 (diff)
parent16ca69540cc1ac8a28b7007aefe628cf24d2c395 (diff)
merge branch 'upstreamMaster'
Diffstat (limited to 'archinstall/__init__.py')
-rw-r--r--archinstall/__init__.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/archinstall/__init__.py b/archinstall/__init__.py
index 44852d4c..c6135e74 100644
--- a/archinstall/__init__.py
+++ b/archinstall/__init__.py
@@ -51,7 +51,7 @@ from .lib.hsm import (
)
parser = ArgumentParser()
-__version__ = "2.5.1"
+__version__ = "2.5.2"
storage['__version__'] = __version__
# add the custome _ as a builtin, it can now be used anywhere in the
@@ -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):