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

--quiet doesn't suppress output #59

Closed
tilusnet opened this issue Feb 17, 2022 · 3 comments
Closed

--quiet doesn't suppress output #59

tilusnet opened this issue Feb 17, 2022 · 3 comments

Comments

@tilusnet
Copy link

When I pass --quiet, the tool still spits out lots of info - presumably coming from the browser process?
I expect a tool to have zero output when a "quiet" option is on.

Also, I couldn't find a quiet option in the Python API.

Is the command line / Python API not equivalent?

@vgalin
Copy link
Owner

vgalin commented Feb 17, 2022

At the moment, there is no way to disable the browser's output from both the CLI and Python package, it is feasible though and will be implemented in a later update. See #55.

Even if the goal is to keep the "interface" very similar between the CLI and the Python API, they are not completely equivalent in some ways. Indeed, CLIs often have quiet/verbose modes to control the amount of information that is automatically displayed after running a command, where you would have to print() them yourself while using the Python package.

For instance, with the CLI, the paths of the generated files are printed by default if the quiet flag is not set, while these paths are returned by the Html2Image.screenshot() method of the Python package.

@ZeroHans4
Copy link

When will this be added? Looking forward to this :)

Would also donate

@ZeroHans4
Copy link

I need to run this often and the ouput bothers me

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

3 participants