MCPcopy Index your code
hub / github.com/archlinux/archinstall / __init__

Method __init__

archinstall/lib/args.py:471–483  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

469
470class ArchConfigHandler:
471 def __init__(self) -> None:
472 self._parser: ArgumentParser = self._define_arguments()
473 self._add_sub_parsers()
474
475 self._args: Arguments = self._parse_args()
476 config = self._parse_config()
477
478 try:
479 self._config = ArchConfig.from_config(config, self._args)
480 self._config.version = get_version()
481 except ValueError as err:
482 warn(str(err))
483 sys.exit(1)
484
485 @property
486 def config(self) -> ArchConfig:

Callers

nothing calls this directly

Calls 8

_define_argumentsMethod · 0.95
_add_sub_parsersMethod · 0.95
_parse_argsMethod · 0.95
_parse_configMethod · 0.95
get_versionFunction · 0.90
warnFunction · 0.90
from_configMethod · 0.80
exitMethod · 0.80

Tested by

no test coverage detected