feat: replace click envar with auto_envvar_prefix (#1829)
This commit is contained in:
parent
623655e3d0
commit
d098671f3b
5 changed files with 6 additions and 9 deletions
|
@ -15,12 +15,11 @@ VERSION = "1.0"
|
|||
DEFAULT_RETRY_QUEUE_FILEPATH = Path("retry_queue")
|
||||
|
||||
|
||||
@click.command()
|
||||
@click.command(context_settings={"auto_envvar_prefix": DEFAULT_ENV_PREFIX})
|
||||
@cli_logging_options()
|
||||
@cli_config_options()
|
||||
@click.option(
|
||||
"--retry-queue-filepath",
|
||||
envvar=f"{DEFAULT_ENV_PREFIX}_RETRY_QUEUE_FILEPATH",
|
||||
type=click.Path(path_type=Path),
|
||||
help="Path to the retry queue file.",
|
||||
default=DEFAULT_RETRY_QUEUE_FILEPATH,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue