Skip to content

Best practices for command line applications? #3

@tastytea

Description

@tastytea

There is a paper called Accessibility of Command Line Interfaces. The conclusions I took from it are:

  • Add an option to output tabular data as HTML tables or comma separated values (CSV).
  • Add an option to output long output as HTML, with headings and other semantic elements where appropriate.
  • Describe how the output is structured so that users have the ability to use utilities like grep to only get what they need.
  • When a command runs for a long time without outputting anything, output status messages. But no progress bars or spinners.
  • Don't use ASCII-art.
  • Ensure that an HTML version of all documentation is available. man pages do not work.

Questions

  • Are the conclusions correct?
  • How often should status messages appear?
  • Can I erase the last status message to print the new one at the same place or is it better to just print a new line?
  • When I make a pull request, should I put it in “Application Accessibility” or in its own file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions