You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 18, 2020. It is now read-only.
-q does not suppress table headers for list_* commands #273
With release version 3.7.9 rabbitmqctl -q list_users includes headings for user and tags. It seems counterintuitive to include headings when using a quiet flag. Is this intended behaviour? I imagine this is going to cause issues for people who are parsing the output. As an example, this change is not compatible with the rabbitmq puppet module.
Yes, this is intentional. See #264. -q is used to suppress the banner commands output and @dumbbell and I concluded that a separate flag should control the headers. Not outputting the headers was an unintentional change [in 3.7.0].
rabbitmqctl list_queues --no-table-headers -q will also omit the headers.
Yes, it is intended. -q suppresses informational headers like "Listing queues for vhost / ...". There is an undocumented argument --no-table-headers that will accomplish what you want (rabbitmq/rabbitmq-server@20539a0). We'll be sure to add that to the help output.
There were (now deleted?) comments in this thread claiming that -q and --no-table-headers aren't supported by list_users. I tried to verify. Here are my findings:
Activity
michaelklishin commentedon Nov 16, 2018
Yes, this is intentional. See #264.
-qis used to suppress the banner commands output and @dumbbell and I concluded that a separate flag should control the headers. Not outputting the headers was an unintentional change [in 3.7.0].rabbitmqctl list_queues --no-table-headers -qwill also omit the headers.[-]Rabbitmqctl output change[/-][+]-q does not suppress table headers for list_* commands[/+]lukebakken commentedon Nov 16, 2018
Yes, it is intended.
-qsuppresses informational headers like "Listing queues for vhost / ...". There is an undocumented argument--no-table-headersthat will accomplish what you want (rabbitmq/rabbitmq-server@20539a0). We'll be sure to add that to thehelpoutput.michaelklishin commentedon Nov 16, 2018
I agree that this deserves a mention in both
--helpand the CLI documentation guide.michaelklishin commentedon Nov 21, 2018
There were (now deleted?) comments in this thread claiming that
-qand--no-table-headersaren't supported bylist_users. I tried to verify. Here are my findings:Suppress additional output CLI tools now produce