Handle config default in arg parsing

This commit is contained in:
flyingscorpio@arch-desktop 2020-12-05 19:23:48 +01:00
parent 41657b7bb3
commit 7cc131b037

View file

@ -21,7 +21,7 @@ class Installer:
def __init__(
self,
config: str = "configs.yml",
config: str,
first_install: bool = False,
force: bool = False,
hide_commands: bool = False,
@ -506,7 +506,11 @@ def main() -> None:
programs = args.programs
config = args.config
if args.config:
config = args.config
else:
config = "configs.yml"
first_install = args.first_install
force = args.force
from_file = args.from_file