add cli alias for --start-timestamp(--from) and --end-timestamp(--to) to conform with the CDX API docs.

This commit is contained in:
Akash Mahanty 2022-02-08 20:12:19 +05:30
parent 118dc6c523
commit 27f2727049

View File

@ -189,12 +189,14 @@ def save_urls_on_file(url_gen: Generator[str, None, None]) -> None:
"-st", "-st",
"--start-timestamp", "--start-timestamp",
"--start_timestamp", "--start_timestamp",
"--from",
help="Start timestamp for CDX API in yyyyMMddhhmmss format.", help="Start timestamp for CDX API in yyyyMMddhhmmss format.",
) )
@click.option( @click.option(
"-et", "-et",
"--end-timestamp", "--end-timestamp",
"--end_timestamp", "--end_timestamp",
"--to",
help="End timestamp for CDX API in yyyyMMddhhmmss format.", help="End timestamp for CDX API in yyyyMMddhhmmss format.",
) )
@click.option( @click.option(