Skip to content

Commit a6ffcf5

Browse files
committed
fix(robot): use --no* for disabled RF flags (e.g. --noexitonfailure) instead of short enable flags
fixes #494
1 parent f21f4ea commit a6ffcf5

File tree

1 file changed

+1
-1
lines changed
  • packages/robot/src/robotcode/robot/config

1 file changed

+1
-1
lines changed

packages/robot/src/robotcode/robot/config/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def build_command_line(self) -> List[str]:
366366
)
367367

368368
def append_name(field: "dataclasses.Field[Any]", add_flag: Optional[str] = None) -> None:
369-
if "robot_short_name" in field.metadata:
369+
if "robot_short_name" in field.metadata and not add_flag:
370370
result.append(f"-{field.metadata['robot_short_name']}")
371371
elif "robot_name" in field.metadata:
372372
result.append(f"--{'no' if add_flag else ''}{field.metadata['robot_name']}")

0 commit comments

Comments
 (0)