Rename install_cli to add_options

This commit is contained in:
James R. Barlow
2020-05-06 01:10:09 -07:00
parent dd361ecd05
commit 39888ae8c9
3 changed files with 8 additions and 4 deletions
+6 -2
View File
@@ -26,8 +26,12 @@ hookspec = pluggy.HookspecMarker('ocrmypdf')
@hookspec
def install_cli(parser: ArgumentParser) -> None:
"""Allows the plugin to add its own command line arguments."""
def add_options(parser: ArgumentParser) -> None:
"""Allows the plugin to add its own command line arguments.
Even if you do not intend to use plugins in a command line context, you
should use this function to create your options.
"""
@hookspec