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

openbmctool: Eliminate extraneous output #38

Open
micwalsh opened this issue Sep 25, 2018 · 3 comments
Open

openbmctool: Eliminate extraneous output #38

micwalsh opened this issue Sep 25, 2018 · 3 comments
Assignees

Comments

@micwalsh
Copy link

openbmctool.py produces output that amounts to clutter when it is unwanted. Example:
Attempting login...

User root has been logged out

Can you change it to NOT produce extra output. You could offer a "verbose" parm so you could see such output when it is desired.

@micwalsh
Copy link
Author

To be more clear, the reason this matters is that I use the output in programs and I'm forced to add code to remove this extra output.

@thalerj
Copy link

thalerj commented Sep 26, 2018

@micwalsh As a temporary work around, If you run with the -j flag it provides JSON output that is much more suited for programmatic parsing. I also propose to adding a --dataOnly option for providing the human readable output with only the data needed.

@amboar
Copy link
Member

amboar commented Sep 26, 2018

@thalerj it is typical of command line tools to only output their data under normal circumstances and nothing further. Usually extra output is hidden behinda --verbose flag. I suggest you take that approach here.

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