Skip to content

Commit a878e22

Browse files
committed
[docs] Fix incorrect short-form specification (#493)
1 parent b2383b5 commit a878e22

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

docs/cli.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Options
6767

6868
.. option:: -m TIMECODE, --min-scene-len TIMECODE
6969

70-
Minimum length of any scene. TIMECODE can be specified as number of frames (:option:`-m=10 <-m>`), time in seconds (:option:`-m=2.5 <-m>`), or timecode (:option:`-m=00:02:53.633 <-m>`).
70+
Minimum length of any scene. TIMECODE can be specified as number of frames (:option:`-m 10 <-m>`), time in seconds (:option:`-m 2.5 <-m>`), or timecode (:option:`-m 00:02:53.633 <-m>`).
7171

7272
Default: ``0.6s``
7373

@@ -91,11 +91,11 @@ Options
9191

9292
.. option:: -d N, --downscale N
9393

94-
Integer factor to downscale video by before processing. If unset, value is selected based on resolution. Set :option:`-d=1 <-d>` to disable downscaling.
94+
Integer factor to downscale video by before processing. If unset, value is selected based on resolution. Set :option:`-d 1 <-d>` to disable downscaling.
9595

9696
.. option:: -fs N, --frame-skip N
9797

98-
Skip N frames during processing. Reduces processing speed at expense of accuracy. :option:`-fs=1 <-fs>` skips every other frame processing 50% of the video, :option:`-fs=2 <-fs>` processes 33% of the video frames, :option:`-fs=3 <-fs>` processes 25%, etc...
98+
Skip N frames during processing. Reduces processing speed at expense of accuracy. :option:`-fs 1 <-fs>` skips every other frame processing 50% of the video, :option:`-fs 2 <-fs>` processes 33% of the video frames, :option:`-fs 3 <-fs>` processes 25%, etc...
9999

100100
Default: ``0``
101101

@@ -208,7 +208,7 @@ Options
208208

209209
.. option:: -m TIMECODE, --min-scene-len TIMECODE
210210

211-
Minimum length of any scene. Overrides global option :option:`-m/--min-scene-len <scenedetect -m>`. TIMECODE can be specified in frames (:option:`-m=100 <-m>`), in seconds with `s` suffix (:option:`-m=3.5s <-m>`), or timecode (:option:`-m=00:01:52.778 <-m>`).
211+
Minimum length of any scene. Overrides global option :option:`-m/--min-scene-len <scenedetect -m>`. TIMECODE can be specified in frames (:option:`-m 100 <-m>`), in seconds with `s` suffix (:option:`-m 3.5s <-m>`), or timecode (:option:`-m 00:01:52.778 <-m>`).
212212

213213

214214
.. _command-detect-content:
@@ -263,7 +263,7 @@ Options
263263

264264
.. option:: -l, --luma-only
265265

266-
Only use luma (brightness) channel. Useful for greyscale videos. Equivalent to setting -w="0 0 1 0".
266+
Only use luma (brightness) channel. Useful for greyscale videos. Equivalent to setting -w 0 0 1 0.
267267

268268
.. option:: -k N, --kernel-size N
269269

@@ -424,7 +424,7 @@ Options
424424

425425
.. option:: -m TIMECODE, --min-scene-len TIMECODE
426426

427-
Minimum length of any scene. Overrides global option :option:`-m/--min-scene-len <scenedetect -m>`. TIMECODE can be specified in frames (:option:`-m=100 <-m>`), in seconds with `s` suffix (:option:`-m=3.5s <-m>`), or timecode (:option:`-m=00:01:52.778 <-m>`).
427+
Minimum length of any scene. Overrides global option :option:`-m/--min-scene-len <scenedetect -m>`. TIMECODE can be specified in frames (:option:`-m 100 <-m>`), in seconds with `s` suffix (:option:`-m 3.5s <-m>`), or timecode (:option:`-m 00:01:52.778 <-m>`).
428428

429429

430430
************************************************************************
@@ -506,7 +506,7 @@ Options
506506

507507
.. option:: -f NAME, --filename NAME
508508

509-
Filename format to use for the scene list CSV file. You can use the $VIDEO_NAME macro in the file name. Note that you may have to wrap the name using single quotes or use escape characters (e.g. :option:`-f=\$VIDEO_NAME-Scenes.csv <-f>`).
509+
Filename format to use for the scene list CSV file. You can use the $VIDEO_NAME macro in the file name. Note that you may have to wrap the name using single quotes or use escape characters (e.g. :option:`-f \$VIDEO_NAME-Scenes.csv <-f>`).
510510

511511
Default: ``$VIDEO_NAME-Scenes.csv``
512512

@@ -590,13 +590,13 @@ Options
590590

591591
.. option:: -f NAME, --filename NAME
592592

593-
Filename format *without* extension to use when saving images. You can use the $VIDEO_NAME, $SCENE_NUMBER, $IMAGE_NUMBER, and $FRAME_NUMBER macros in the file name. You may have to use escape characters (e.g. :option:`-f=\$SCENE_NUMBER-Image-\$IMAGE_NUMBER <-f>`) or single quotes.
593+
Filename format *without* extension to use when saving images. You can use the $VIDEO_NAME, $SCENE_NUMBER, $IMAGE_NUMBER, and $FRAME_NUMBER macros in the file name. You may have to use escape characters (e.g. :option:`-f \$SCENE_NUMBER-Image-\$IMAGE_NUMBER <-f>`) or single quotes.
594594

595595
Default: ``$VIDEO_NAME-Scene-$SCENE_NUMBER-$IMAGE_NUMBER``
596596

597597
.. option:: -n N, --num-images N
598598

599-
Number of images to generate per scene. Will always include start/end frame, unless :option:`-n=1 <-n>`, in which case the image will be the frame at the mid-point of the scene.
599+
Number of images to generate per scene. Will always include start/end frame, unless :option:`-n 1 <-n>`, in which case the image will be the frame at the mid-point of the scene.
600600

601601
Default: ``3``
602602

@@ -713,7 +713,7 @@ Options
713713

714714
.. option:: -f NAME, --filename NAME
715715

716-
File name format to use when saving videos, with or without extension. You can use $VIDEO_NAME and $SCENE_NUMBER macros in the filename. You may have to wrap the format in single quotes or use escape characters to avoid variable expansion (e.g. :option:`-f=\$VIDEO_NAME-Scene-\$SCENE_NUMBER <-f>`).
716+
File name format to use when saving videos, with or without extension. You can use $VIDEO_NAME and $SCENE_NUMBER macros in the filename. You may have to wrap the format in single quotes or use escape characters to avoid variable expansion (e.g. :option:`-f \$VIDEO_NAME-Scene-\$SCENE_NUMBER <-f>`).
717717

718718
Default: ``$VIDEO_NAME-Scene-$SCENE_NUMBER``
719719

scenedetect/_cli/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def print_command_help(ctx: click.Context, command: click.Command):
229229
metavar="TIMECODE",
230230
type=click.STRING,
231231
default=None,
232-
help="Minimum length of any scene. TIMECODE can be specified as number of frames (-m=10), time in seconds (-m=2.5), or timecode (-m=00:02:53.633).%s"
232+
help="Minimum length of any scene. TIMECODE can be specified as number of frames (-m 10), time in seconds (-m 2.5), or timecode (-m 00:02:53.633).%s"
233233
% USER_CONFIG.get_help_string("global", "min-scene-len"),
234234
)
235235
@click.option(
@@ -271,7 +271,7 @@ def print_command_help(ctx: click.Context, command: click.Command):
271271
metavar="N",
272272
type=click.INT,
273273
default=None,
274-
help="Integer factor to downscale video by before processing. If unset, value is selected based on resolution. Set -d=1 to disable downscaling.%s"
274+
help="Integer factor to downscale video by before processing. If unset, value is selected based on resolution. Set -d 1 to disable downscaling.%s"
275275
% (USER_CONFIG.get_help_string("global", "downscale", show_default=False)),
276276
)
277277
@click.option(
@@ -280,7 +280,7 @@ def print_command_help(ctx: click.Context, command: click.Command):
280280
metavar="N",
281281
type=click.INT,
282282
default=None,
283-
help="Skip N frames during processing. Reduces processing speed at expense of accuracy. -fs=1 skips every other frame processing 50%% of the video, -fs=2 processes 33%% of the video frames, -fs=3 processes 25%%, etc... %s"
283+
help="Skip N frames during processing. Reduces processing speed at expense of accuracy. -fs 1 skips every other frame processing 50%% of the video, -fs 2 processes 33%% of the video frames, -fs 3 processes 25%%, etc... %s"
284284
% USER_CONFIG.get_help_string("global", "frame-skip"),
285285
)
286286
@click.option(
@@ -524,7 +524,7 @@ def time_command(
524524
"-l",
525525
is_flag=True,
526526
flag_value=True,
527-
help='Only use luma (brightness) channel. Useful for greyscale videos. Equivalent to setting -w="0 0 1 0".%s'
527+
help="Only use luma (brightness) channel. Useful for greyscale videos. Equivalent to setting -w 0 0 1 0.%s"
528528
% (USER_CONFIG.get_help_string("detect-content", "luma-only")),
529529
)
530530
@click.option(
@@ -665,7 +665,7 @@ def detect_content_command(
665665
metavar="TIMECODE",
666666
type=click.STRING,
667667
default=None,
668-
help="Minimum length of any scene. Overrides global option -m/--min-scene-len. TIMECODE can be specified in frames (-m=100), in seconds with `s` suffix (-m=3.5s), or timecode (-m=00:01:52.778).%s"
668+
help="Minimum length of any scene. Overrides global option -m/--min-scene-len. TIMECODE can be specified in frames (-m 100), in seconds with `s` suffix (-m 3.5s), or timecode (-m 00:01:52.778).%s"
669669
% (
670670
""
671671
if USER_CONFIG.is_default("detect-adaptive", "min-scene-len")
@@ -750,7 +750,7 @@ def detect_adaptive_command(
750750
metavar="TIMECODE",
751751
type=click.STRING,
752752
default=None,
753-
help="Minimum length of any scene. Overrides global option -m/--min-scene-len. TIMECODE can be specified in frames (-m=100), in seconds with `s` suffix (-m=3.5s), or timecode (-m=00:01:52.778).%s"
753+
help="Minimum length of any scene. Overrides global option -m/--min-scene-len. TIMECODE can be specified in frames (-m 100), in seconds with `s` suffix (-m 3.5s), or timecode (-m 00:01:52.778).%s"
754754
% (
755755
""
756756
if USER_CONFIG.is_default("detect-threshold", "min-scene-len")
@@ -1087,7 +1087,7 @@ def save_html_command(
10871087
metavar="NAME",
10881088
default="$VIDEO_NAME-Scenes.csv",
10891089
type=click.STRING,
1090-
help="Filename format to use for the scene list CSV file. You can use the $VIDEO_NAME macro in the file name. Note that you may have to wrap the name using single quotes or use escape characters (e.g. -f=\\$VIDEO_NAME-Scenes.csv).%s"
1090+
help="Filename format to use for the scene list CSV file. You can use the $VIDEO_NAME macro in the file name. Note that you may have to wrap the name using single quotes or use escape characters (e.g. -f \\$VIDEO_NAME-Scenes.csv).%s"
10911091
% (USER_CONFIG.get_help_string("list-scenes", "filename")),
10921092
)
10931093
@click.option(
@@ -1179,7 +1179,7 @@ def list_scenes_command(
11791179
metavar="NAME",
11801180
default=None,
11811181
type=click.STRING,
1182-
help="File name format to use when saving videos, with or without extension. You can use $VIDEO_NAME and $SCENE_NUMBER macros in the filename. You may have to wrap the format in single quotes or use escape characters to avoid variable expansion (e.g. -f=\\$VIDEO_NAME-Scene-\\$SCENE_NUMBER).%s"
1182+
help="File name format to use when saving videos, with or without extension. You can use $VIDEO_NAME and $SCENE_NUMBER macros in the filename. You may have to wrap the format in single quotes or use escape characters to avoid variable expansion (e.g. -f \\$VIDEO_NAME-Scene-\\$SCENE_NUMBER).%s"
11831183
% (USER_CONFIG.get_help_string("split-video", "filename")),
11841184
)
11851185
@click.option(
@@ -1356,7 +1356,7 @@ def split_video_command(
13561356
metavar="NAME",
13571357
default=None,
13581358
type=click.STRING,
1359-
help="Filename format *without* extension to use when saving images. You can use the $VIDEO_NAME, $SCENE_NUMBER, $IMAGE_NUMBER, and $FRAME_NUMBER macros in the file name. You may have to use escape characters (e.g. -f=\\$SCENE_NUMBER-Image-\\$IMAGE_NUMBER) or single quotes.%s"
1359+
help="Filename format *without* extension to use when saving images. You can use the $VIDEO_NAME, $SCENE_NUMBER, $IMAGE_NUMBER, and $FRAME_NUMBER macros in the file name. You may have to use escape characters (e.g. -f \\$SCENE_NUMBER-Image-\\$IMAGE_NUMBER) or single quotes.%s"
13601360
% (USER_CONFIG.get_help_string("save-images", "filename")),
13611361
)
13621362
@click.option(
@@ -1365,7 +1365,7 @@ def split_video_command(
13651365
metavar="N",
13661366
default=None,
13671367
type=click.INT,
1368-
help="Number of images to generate per scene. Will always include start/end frame, unless -n=1, in which case the image will be the frame at the mid-point of the scene.%s"
1368+
help="Number of images to generate per scene. Will always include start/end frame, unless -n 1, in which case the image will be the frame at the mid-point of the scene.%s"
13691369
% (USER_CONFIG.get_help_string("save-images", "num-images")),
13701370
)
13711371
@click.option(

0 commit comments

Comments
 (0)