-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Update CLI helpdoc formatting to allow indentation in code #130
Conversation
Use `textwrap.dedent()` to allow indented cli-helpdoc in `__main__.py` file. The indentation increases readability, while `textwrap.dedent` helps maintain the same functionality without breaking code.
@microsoft-github-policy-service agree |
cc: @gagb |
can you please run precommit? |
Can also please share a screenshot of how different the output of |
…y/markitdown into update_commandline_help
Hi @gagb, |
@gagb: I have shared the screenshots. Thank you. |
I am unfortunately having a hard time seeing a difference? What did I miss? @afourney |
Hi @gagb
There should not be any difference b/w the helpdoc before and after the change. The image at the top shows what changes in the code. And my screenshots show that the cli-help is still unchanged. 💡 There was a button to update the branch with regard to the |
My bad, I now understand the |
@gagb No issues. Perhaps the title of the PR was a bit confusing. The branch was not ready to merge despite the checks being passed. So, I updated the branch (from the Please let me know if there is anything else necessary from my end. Thank you. |
I've not used this before. Neat. Tests are running, and I'll merge once done. |
Use
textwrap.dedent()
to allow indented cli-helpdoc in__main__.py
file. The indentation increases readability, whiletextwrap.dedent
helps maintain the same functionality without breaking code.