Skip to content

UsageStyle of package cli

suntong edited this page May 12, 2018 · 2 revisions

http://bit.ly/cliUsageStyle

The package github.com/go-easygen/cli has four UsageStyles.

Using the help message of wireframe to showcase them all:

ManualStyle

$ wireframe 
wire framing
Version 0.1.0 built on 2018-05-12

Tool to showcase wire-framing command line app fast prototype

Options:

  -h, --help
      display help information

  -c, --config[=wireframe_cfg.json]
      config file

  -H, --host[=$HOST]
      host addr

  -p, --port
      listening port

  -D, --daemonize
      daemonize the service

  -v, --verbose
      Verbose mode (Multiple -v options increase the verbosity.)

Commands:

  put   Upload into service
  get   Get from the service

DenseManualStyle

$ wireframe 
wire framing
Version 0.1.0 built on 2018-05-12

Tool to showcase wire-framing command line app fast prototype

Options:

  -h, --help
      display help information
  -c, --config[=wireframe_cfg.json]
      config file
  -H, --host[=$HOST]
      host addr
  -p, --port
      listening port
  -D, --daemonize
      daemonize the service
  -v, --verbose
      Verbose mode (Multiple -v options increase the verbosity.)
Commands:

  put   Upload into service
  get   Get from the service

NormalStyle

$ wireframe 
wire framing
Version 0.1.0 built on 2018-05-12

Tool to showcase wire-framing command line app fast prototype

Options:

  -h, --help                          display help information
  -c, --config[=wireframe_cfg.json]   config file
  -H, --host[=$HOST]                  host addr
  -p, --port                          listening port
  -D, --daemonize                     daemonize the service
  -v, --verbose                       Verbose mode (Multiple -v options increase the verbosity.)

Commands:

  put   Upload into service
  get   Get from the service

DenseNormalStyle

$ wireframe 
wire framing
Version 0.1.0 built on 2018-05-12

Tool to showcase wire-framing command line app fast prototype

Options:

  -h, --help        display help information 
  -c, --config      config file [=wireframe_cfg.json]
  -H, --host        host addr [=$HOST]
  -p, --port        listening port 
  -D, --daemonize   daemonize the service 
  -v, --verbose     Verbose mode (Multiple -v options increase the verbosity.) 

Commands:

  put   Upload into service
  get   Get from the service