0

Are there generic rules or guidelines meant to improve the ease of use or user experience with a command line interface (CLI)?

Maybe even some attempt at standardization?

In my case I'm trying to follow the ideas of git and I'm using Python with the click package which already sets some "framework".

Cedric H.
  • 7,980
  • 10
  • 55
  • 82
  • http://www.tldp.org/LDP/abs/html/standard-options.html There are just standards, you are free to do as you want. It's just that if you don't present as it is done in lots of cli programs, your users will be annoyed. – Pierre Emmanuel Lallemant Dec 31 '15 at 15:02
  • The GNU Project has some [CLI standards](https://www.gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html), which are based on the POSIX standards. – Mike Harris Dec 31 '15 at 15:03

2 Answers2

2

We created clig.dev for this purpose.

1

You can take example on cobra (used by docker or kubernetes) as an example of a complete CLI framework, one with:

Most of those are also implemented with Python click.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250