Skip to content

Commit 06f2bd3

Browse files
committed
Error if output-path and output-dir are set
Signed-off-by: Samuel Monson <[email protected]>
1 parent 91732e0 commit 06f2bd3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/guidellm/__main__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,8 @@ def run(**kwargs):
402402

403403
# Handle output path remapping
404404
if (output_path := kwargs.pop("output_path", None)) is not None:
405+
if kwargs.get("outputs_dir", None) is not None:
406+
raise click.BadParameter("Cannot use --output-path with --output-dir.")
405407
path = Path(output_path)
406408
if path.is_dir():
407409
kwargs["output_dir"] = path
@@ -523,8 +525,8 @@ def preprocess():
523525
"PreprocessDatasetConfig as JSON string, key=value pairs, "
524526
"or file path (.json, .yaml, .yml, .config). "
525527
"Example: 'prompt_tokens=100,output_tokens=50,prefix_tokens_max=10'"
526-
" or '{\"prompt_tokens\": 100, \"output_tokens\": 50, "
527-
"\"prefix_tokens_max\": 10}'"
528+
' or \'{"prompt_tokens": 100, "output_tokens": 50, '
529+
'"prefix_tokens_max": 10}\''
528530
),
529531
)
530532
@click.option(

0 commit comments

Comments
 (0)