Skip to content

Commit 2c6db04

Browse files
committed
CLI: add no_args_is_help option to CLI scripts for improved user experience
1 parent 005ab98 commit 2c6db04

File tree

10 files changed

+10
-2
lines changed

10 files changed

+10
-2
lines changed

scripts/caption_videos.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
console = Console()
6363
app = typer.Typer(
6464
pretty_exceptions_enable=False,
65+
no_args_is_help=True,
6566
help="Auto-caption videos using vision-language models.",
6667
)
6768

scripts/compute_condition.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ def media_path_to_reference_path(media_file: Path) -> Path:
237237

238238
app = typer.Typer(
239239
pretty_exceptions_enable=False,
240+
no_args_is_help=True,
240241
help="Compute condition on videos.",
241242
)
242243

scripts/convert_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
console = Console()
1111

12-
app = typer.Typer(help="Convert checkpoint format between Diffusers and ComfyUI formats")
12+
app = typer.Typer(no_args_is_help=True, help="Convert checkpoint format between Diffusers and ComfyUI formats")
1313

1414

1515
@app.command()

scripts/decode_latents.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
console = Console()
3737
app = typer.Typer(
3838
pretty_exceptions_enable=False,
39+
no_args_is_help=True,
3940
help="Decode precomputed video latents back into videos using the VAE.",
4041
)
4142

scripts/preprocess_dataset.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
console = Console()
2828
app = typer.Typer(
2929
pretty_exceptions_enable=False,
30+
no_args_is_help=True,
3031
help="Preprocess a video dataset by computing video clips latents and text captions embeddings. "
3132
"The dataset must be a CSV, JSON, or JSONL file with columns for captions and video paths.",
3233
)

scripts/process_captions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666

6767
app = typer.Typer(
6868
pretty_exceptions_enable=False,
69+
no_args_is_help=True,
6970
help="Process text captions and save embeddings for video generation training.",
7071
)
7172

scripts/process_videos.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949

5050
app = typer.Typer(
5151
pretty_exceptions_enable=False,
52+
no_args_is_help=True,
5253
help="Process videos/images and save latent representations for video generation training.",
5354
)
5455

scripts/run_pipeline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def wrapper(*args, **kwargs) -> None:
6060

6161
console = Console()
6262
app = typer.Typer(
63+
no_args_is_help=True,
6364
pretty_exceptions_enable=False,
6465
help="Run the complete LTXV training pipeline.",
6566
)

scripts/split_scenes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
from scenedetect.stats_manager import StatsManager
4545
from scenedetect.video_splitter import split_video_ffmpeg
4646

47-
app = typer.Typer(help="Split video into scenes using PySceneDetect.")
47+
app = typer.Typer(no_args_is_help=True, help="Split video into scenes using PySceneDetect.")
4848

4949

5050
class DetectorType(str, Enum):

scripts/train.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
console = Console()
2424
app = typer.Typer(
2525
pretty_exceptions_enable=False,
26+
no_args_is_help=True,
2627
help="Train LTXV models using configuration from YAML files.",
2728
)
2829

0 commit comments

Comments
 (0)