chore(cli): show default for all cli options (#26)

This commit is contained in:
Jérome Eertmans
2022-09-21 15:41:19 +02:00
committed by GitHub
parent 49cdedc6fe
commit 91f8d97acf
2 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

@ -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.")