File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 44import argparse
55import sys
66from textwrap import dedent
7- from __about__ import __version__
8- from _markitdown import MarkItDown , DocumentConverterResult
7+ from . __about__ import __version__
8+ from . _markitdown import MarkItDown , DocumentConverterResult
99
1010
1111def main ():
@@ -51,24 +51,27 @@ def main():
5151 help = "show the version number and exit" ,
5252 )
5353
54- parser .add_argument ("filename" , nargs = "?" )
5554 parser .add_argument (
5655 "-o" ,
5756 "--output" ,
5857 help = "Output file name. If not provided, output is written to stdout." ,
5958 )
59+
6060 parser .add_argument (
6161 "-d" ,
6262 "--use-docintel" ,
6363 action = "store_true" ,
6464 help = "Use Document Intelligence to extract text instead of offline conversion. Requires a valid Document Intelligence Endpoint." ,
6565 )
66+
6667 parser .add_argument (
6768 "-e" ,
6869 "--endpoint" ,
6970 type = str ,
7071 help = "Document Intelligence Endpoint. Required if using Document Intelligence." ,
7172 )
73+
74+ parser .add_argument ("filename" , nargs = "?" )
7275 args = parser .parse_args ()
7376
7477 if args .use_docintel :
You can’t perform that action at this time.
0 commit comments