mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-07-04 07:27:00 +08:00
chore(cli): show default for all cli options (#26)
This commit is contained in:
@ -14,6 +14,7 @@ def config_path_option(function) -> Callable:
|
|||||||
default=CONFIG_PATH,
|
default=CONFIG_PATH,
|
||||||
type=click.Path(dir_okay=False),
|
type=click.Path(dir_okay=False),
|
||||||
help="Set path to configuration file.",
|
help="Set path to configuration file.",
|
||||||
|
show_default=True,
|
||||||
)(function)
|
)(function)
|
||||||
|
|
||||||
|
|
||||||
|
@ -434,6 +434,7 @@ class Display:
|
|||||||
default=FOLDER_PATH,
|
default=FOLDER_PATH,
|
||||||
type=click.Path(exists=True, file_okay=False),
|
type=click.Path(exists=True, file_okay=False),
|
||||||
help="Set slides folder.",
|
help="Set slides folder.",
|
||||||
|
show_default=True,
|
||||||
)
|
)
|
||||||
@click.help_option("-h", "--help")
|
@click.help_option("-h", "--help")
|
||||||
def list_scenes(folder):
|
def list_scenes(folder):
|
||||||
@ -467,6 +468,7 @@ def _list_scenes(folder) -> List[str]:
|
|||||||
default=FOLDER_PATH,
|
default=FOLDER_PATH,
|
||||||
type=click.Path(exists=True, file_okay=False),
|
type=click.Path(exists=True, file_okay=False),
|
||||||
help="Set slides folder.",
|
help="Set slides folder.",
|
||||||
|
show_default=True,
|
||||||
)
|
)
|
||||||
@click.option("--start-paused", is_flag=True, help="Start paused.")
|
@click.option("--start-paused", is_flag=True, help="Start paused.")
|
||||||
@click.option("--fullscreen", is_flag=True, help="Fullscreen mode.")
|
@click.option("--fullscreen", is_flag=True, help="Fullscreen mode.")
|
||||||
|
Reference in New Issue
Block a user