Changeset View
Changeset View
Standalone View
Standalone View
swh/fuse/cli.py
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
@swh_cli_group.group(name="fuse", context_settings=CONTEXT_SETTINGS) | @swh_cli_group.group(name="fuse", context_settings=CONTEXT_SETTINGS) | ||||
@click.option( | @click.option( | ||||
"-C", | "-C", | ||||
"--config-file", | "--config-file", | ||||
default=None, | default=None, | ||||
type=click.Path(exists=True, dir_okay=False, path_type=str), | type=click.Path(exists=True, dir_okay=False, path_type=str), | ||||
help="YAML configuration file", | help=f"Configuration file (default: {DEFAULT_CONFIG_PATH})", | ||||
) | ) | ||||
@click.pass_context | @click.pass_context | ||||
def fuse(ctx, config_file): | def fuse(ctx, config_file): | ||||
"""Software Heritage virtual file system""" | """Software Heritage virtual file system""" | ||||
if not config_file and config.config_exists(DEFAULT_CONFIG_PATH): | if not config_file and config.config_exists(DEFAULT_CONFIG_PATH): | ||||
config_file = DEFAULT_CONFIG_PATH | config_file = DEFAULT_CONFIG_PATH | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |