Commit 453e0d1c authored by Tanguy Le Carrour's avatar Tanguy Le Carrour
Browse files

Improve the help message for the 'extract' command.

parent 0c3cdb29
......@@ -17,9 +17,21 @@ def cli(ctx: click.Context) -> None:
@click.argument("intervals", nargs=-1)
def extract(ctx: click.Context, track: str, intervals: Tuple[str]) -> None:
controller = controllers.ExtractSubTracks(track, list(intervals))
@click.argument("interval", nargs=-1)
def extract(ctx: click.Context, track: str, interval: Tuple[str]) -> None:
"""Extract sub-tracks from a track.
A variable number of intervals can be passed. They are separated by a space.
An INTERVAL is a start time (in seconds) and an end time (in seconds)
separated by a "-" sign.
For instance, Splito can be run like this:
$ splito extract my_track.mp3 17-28 40-66
controller = controllers.ExtractSubTracks(track, list(interval))
presenter = presenters.ExtractSubTracks()
interactor = ExtractSubTracksInteractor(presenter, ctx.obj["tracks"])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment