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

xcvradm could use parseable output #105

Open
bnaecker opened this issue Jun 21, 2023 · 1 comment
Open

xcvradm could use parseable output #105

bnaecker opened this issue Jun 21, 2023 · 1 comment
Assignees

Comments

@bnaecker
Copy link
Collaborator

Many illumos tools support a parseable mode, in which the output is regularly-structured and meant for machine consumption. Rather than nicely-printed tables, output is formatted with a single, often configurable, separator character. xcvradm could benefit from such a mode. Flags to implement include:

  • -p or --parseable: select parseable mode, over human-friendly formatting
  • -s or --separator: select the separator character
  • -o or similar: the list of fields to include in the output. It's also nice to print a list of the available fields, in lieu of a man page.
  • -H or --no-header: do not print headers for the selected columns
@bnaecker bnaecker self-assigned this Jun 21, 2023
@rmustacc
Copy link

Note you should ensure that -p requires you to pick -o. However, -o can work without -p.

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

2 participants