Skip to content
Snippets Groups Projects
Commit 0fb0b44f authored by David Mehren's avatar David Mehren Committed by Felix Schäfer
Browse files

Rename vanity_file to redirects_file

parent dc0b07fe
No related branches found
No related tags found
1 merge request!2Rewrite CLI
......@@ -40,7 +40,7 @@ def version(verbose):
@cli.command()
@click.argument("vanity_file", type=click.File("r"), envvar="VANITY_FILE")
@click.argument("redirects_file", type=click.File("r"), envvar="REDIRECTS_FILE")
@click.option(
"-o",
"--out-dir",
......@@ -61,9 +61,9 @@ def version(verbose):
@click.option(
"-c", "--check", is_flag=True, envvar="CHECK_MODE", help="Run in check mode"
)
def generate(vanity_file: TextIOWrapper, out_dir, ignore_urls, check):
def generate(redirects_file: TextIOWrapper, out_dir, ignore_urls, check):
"""Generate shortlink filetree"""
generator = ShortlinkGenerator(vanity_file, ignore_urls)
generator = ShortlinkGenerator(redirects_file, ignore_urls)
if check:
if not generator.check_all_urls():
sys.exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment