@@ -16,6 +16,7 @@ from .utils import DEFAULT_USER_AGENT
|
|||||||
from .wrapper import Url
|
from .wrapper import Url
|
||||||
|
|
||||||
|
|
||||||
|
@click.command()
|
||||||
@click.option(
|
@click.option(
|
||||||
"-u", "--url", help="URL on which Wayback machine operations are to be performed."
|
"-u", "--url", help="URL on which Wayback machine operations are to be performed."
|
||||||
)
|
)
|
||||||
@@ -171,7 +172,7 @@ from .wrapper import Url
|
|||||||
+ "if this parameter is not used then the plain text response of the CDX API "
|
+ "if this parameter is not used then the plain text response of the CDX API "
|
||||||
+ "will be printed.",
|
+ "will be printed.",
|
||||||
)
|
)
|
||||||
def _main(
|
def main( # pylint: disable=no-value-for-parameter
|
||||||
url: Optional[str],
|
url: Optional[str],
|
||||||
user_agent: str,
|
user_agent: str,
|
||||||
version: bool,
|
version: bool,
|
||||||
@@ -405,9 +406,5 @@ def _main(
|
|||||||
click.echo(output_string)
|
click.echo(output_string)
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
|
||||||
click.command()(_main)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
Reference in New Issue
Block a user