mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-31 14:58:23 +00:00
Merge pull request #603 from deezer/help-fix
🐛 add help display for no args
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "spleeter"
|
name = "spleeter"
|
||||||
version = "2.2.1"
|
version = "2.2.2"
|
||||||
description = "The Deezer source separation library with pretrained models based on tensorflow."
|
description = "The Deezer source separation library with pretrained models based on tensorflow."
|
||||||
authors = ["Deezer Research <spleeter@deezer.com>"]
|
authors = ["Deezer Research <spleeter@deezer.com>"]
|
||||||
license = "MIT License"
|
license = "MIT License"
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ from .utils.logging import configure_logger, logger
|
|||||||
|
|
||||||
# pylint: enable=import-error
|
# pylint: enable=import-error
|
||||||
|
|
||||||
spleeter: Typer = Typer(add_completion=False)
|
spleeter: Typer = Typer(add_completion=False, no_args_is_help=True, short_help="-h")
|
||||||
""" CLI application. """
|
""" CLI application. """
|
||||||
|
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ def default(
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@spleeter.command()
|
@spleeter.command(no_args_is_help=True)
|
||||||
def train(
|
def train(
|
||||||
adapter: str = AudioAdapterOption,
|
adapter: str = AudioAdapterOption,
|
||||||
data: Path = TrainingDataDirectoryOption,
|
data: Path = TrainingDataDirectoryOption,
|
||||||
@@ -91,7 +91,7 @@ def train(
|
|||||||
logger.info("Model training done")
|
logger.info("Model training done")
|
||||||
|
|
||||||
|
|
||||||
@spleeter.command()
|
@spleeter.command(no_args_is_help=True)
|
||||||
def separate(
|
def separate(
|
||||||
deprecated_files: Optional[str] = AudioInputOption,
|
deprecated_files: Optional[str] = AudioInputOption,
|
||||||
files: List[Path] = AudioInputArgument,
|
files: List[Path] = AudioInputArgument,
|
||||||
@@ -189,7 +189,7 @@ def _compile_metrics(metrics_output_directory) -> Dict:
|
|||||||
return metrics
|
return metrics
|
||||||
|
|
||||||
|
|
||||||
@spleeter.command()
|
@spleeter.command(no_args_is_help=True)
|
||||||
def evaluate(
|
def evaluate(
|
||||||
adapter: str = AudioAdapterOption,
|
adapter: str = AudioAdapterOption,
|
||||||
output_path: Path = AudioOutputOption,
|
output_path: Path = AudioOutputOption,
|
||||||
|
|||||||
Reference in New Issue
Block a user