From 7cc131b0373799462334511949a270c9c28601d1 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Sat, 5 Dec 2020 19:23:48 +0100 Subject: [PATCH] Handle config default in arg parsing --- install.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/install.py b/install.py index 5595994..97446a9 100755 --- a/install.py +++ b/install.py @@ -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