# slurm_script_generator.utils

*module*

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/utils.py#L1-L1)

## slurm_script_generator.utils.add_line

*function*

```python
def add_line(line, comment=None, line_length=54)
```

Add a line to the script with an optional comment, aligned to the right.

Parameters
----------
line : str
    The line to add to the script.
comment : str, optional
    An optional comment to add to the line. Defaults to None.
line_length : int, optional
    The length of the line before the comment starts. Defaults to 54.

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/utils.py#L1-L26)
