The Wayback Machine - https://web.archive.org/web/20210411044738/https://github.com/topics/commands
Skip to content
#

commands

Here are 522 public repositories matching this topic...

has
virgilwashere
virgilwashere commented May 22, 2019

Add -h and -V options

Basic getopts version:

  #-----------------------------------------------------------------------
  #  Handle command line arguments
  #-----------------------------------------------------------------------
  while getopts ":hV" opt
  do
    # shellcheck disable=SC2214
    case "${opt}" in

      h|help      ) _usage;    exit 0 ;;
      V|version   ) _version;  

🖥 Go CLI application, tool library, running CLI commands, support console color, user interaction, progress display, data formatting display, generate bash/zsh completion add more features. Go的命令行应用,工具库,运行CLI命令,支持命令行色彩,用户交互,进度显示,数据格式化显示,生成bash/zsh命令补全脚本
  • Updated Apr 8, 2021
  • Go

Improve this page

Add a description, image, and links to the commands topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the commands topic, visit your repo's landing page and select "manage topics."

Learn more