tidy docstrings

This commit is contained in:
Casper da Costa-Luis 2025-03-06 14:07:01 +00:00
parent b0406ca2c7
commit 38feb5e7a1
No known key found for this signature in database
GPG key ID: D88C553DBD362CDE

View file

@ -37,28 +37,26 @@ parser.add_argument(
"-d", "-d",
"--use-docintel", "--use-docintel",
action="store_true", action="store_true",
help="Use Document Intelligence to extract text instead of offline conversion. Requires a valid Document Intelligence Endpoint.", help="use online Document Intelligence to extract text (requires a valid `--endpoint`)",
) )
parser.add_argument( parser.add_argument(
"-e", "-e",
"--endpoint", "--endpoint",
type=str, type=str,
help="Document Intelligence Endpoint. Required if using Document Intelligence.", help="required for `--use-docintel`",
) )
parser.add_argument( parser.add_argument(
"-p", "-p",
"--use-plugins", "--use-plugins",
action="store_true", action="store_true",
help="Use 3rd-party plugins to convert files. Use --list-plugins to see installed plugins.", help="use 3rd-party plugins to convert files (see `--list-plugins`)",
) )
parser.add_argument( parser.add_argument(
"--list-plugins", "--list-plugins",
action="store_true", action="store_true",
help="List installed 3rd-party plugins. Plugins are loaded when using the -p or --use-plugin option.", help="list installed 3rd-party plugins (loaded with `--use-plugin`)",
)
parser.add_argument(
"filename", nargs="?", help="if unspecified, defaults to stdin"
) )
parser.add_argument("filename", nargs="?", help="if unspecified, defaults to stdin")
def main(args=None): def main(args=None):