diff --git a/src/dstack/_internal/cli/commands/run.py b/src/dstack/_internal/cli/commands/run.py index 9c8be0356..ec003812d 100644 --- a/src/dstack/_internal/cli/commands/run.py +++ b/src/dstack/_internal/cli/commands/run.py @@ -106,8 +106,8 @@ def _command(self, args: argparse.Namespace): parser = argparse.ArgumentParser() configurator = run_configurators_mapping[ConfigurationType(conf.type)] configurator.register(parser) - args, unknown = parser.parse_known_args(args.unknown) - configurator.apply(args, unknown, conf) + known, unknown = parser.parse_known_args(args.unknown) + configurator.apply(known, unknown, conf) with console.status("Getting run plan..."): run_plan = self.api.runs.get_plan(