diff --git a/kas/config.py b/kas/config.py index c88a2b0..4a9cc60 100644 --- a/kas/config.py +++ b/kas/config.py @@ -35,7 +35,7 @@ class Config: """ Implements the kas configuration based on config files. """ - def __init__(self, filename, target, task=None): + def __init__(self, filename, target=None, task=None): self._override_target = target self._override_task = task self._config = {} diff --git a/kas/plugins/shell.py b/kas/plugins/shell.py index a7e067f..112356c 100644 --- a/kas/plugins/shell.py +++ b/kas/plugins/shell.py @@ -80,7 +80,7 @@ class Shell: """ ctx = create_global_context(args) - ctx.config = Config(args.config, None, None) + ctx.config = Config(args.config) macro = Macro()