Skip to content

Add show_progress flag and CLI option to control progress bar display#116

Open
mattiasboyer wants to merge 3 commits into
AlJohri:mainfrom
mattiasboyer:master
Open

Add show_progress flag and CLI option to control progress bar display#116
mattiasboyer wants to merge 3 commits into
AlJohri:mainfrom
mattiasboyer:master

Conversation

@mattiasboyer
Copy link
Copy Markdown

This pull request introduces a show_progress parameter to the windows() and macos() functions to enable or disable the progress bar during document conversion.
Additionally, it updates the CLI to support a new --no-progress flag that allows users to disable the progress bar from the command line. This flag maps inversely to the show_progress parameter.

Changes:
Added show_progress argument to windows() and macos() functions to conditionally show the tqdm progress bar.
Added --no-progress flag to CLI to disable progress bar.
Updated CLI to pass show_progress=not args.no_progress to convert().

Motivation:
Allow users to disable progress bar for non-interactive or logging scenarios.
Improve usability and code clarity.
The default behavior remains unchanged with progress bars enabled unless --no-progress is specified

@tristanscl
Copy link
Copy Markdown

Please merge that pull request, the progress bar is very annoying in production...

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

Successfully merging this pull request may close these issues.

2 participants