Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

markitdown: error: unrecognized arguments: -o document.md #268

Open
KazTamai opened this issue Jan 7, 2025 · 4 comments
Open

markitdown: error: unrecognized arguments: -o document.md #268

KazTamai opened this issue Jan 7, 2025 · 4 comments

Comments

@KazTamai
Copy link

KazTamai commented Jan 7, 2025

Noticed following error, so the initial thought was that it is related to #116

PS C:\Windows\system32> markitdown "C:\Output\So-many-test!.htm" > "C:\Output\So-many-test!.md"
>>
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\testuser\AppData\Local\Programs\Python\Python313\Scripts\markitdown.exe\__main__.py", line 7, in <module>
    sys.exit(main())

However, if I try to use -o option, it would return the following output and ignores -o option.
I am trying to convert htm to md.

PS C:\Output> markitdown test.htm -o document.md
usage: SYNTAX:

    markitdown <OPTIONAL: FILENAME>
    If FILENAME is empty, markitdown reads from stdin.

EXAMPLE:

    markitdown example.pdf

    OR

    cat example.pdf | markitdown

    OR

    markitdown < example.pdf
markitdown: error: unrecognized arguments: -o document.md
@l-lumin
Copy link
Contributor

l-lumin commented Jan 8, 2025

Aside from your CLI string, I think you're using older version. Could you update to the latest version and check again?

@jeanbeziaud-bib
Copy link

I have the same issue with the latest version

@hprez
Copy link

hprez commented Jan 8, 2025

Same problem

@TamaHack
Copy link

Having the same issue, with the latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants