全部搜尋項
trixie  ] [  sid  ]
[ 原始碼: golang-github-tdewolff-argp  ]

套件:golang-github-tdewolff-argp-dev(0.0~git20240223.719bbce-1)

golang-github-tdewolff-argp-dev 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 golang-github-tdewolff-argp

維護小組:

外部的資源:

相似套件:

GNU command line argument parser (Go library)

The argp Go package provides a command-line argument parser following the GNU standard.

  ./test -vo out.png --size 256 input.txt

with the following features:

 * build-in help (-h and --help) message
 * scan arguments into struct fields with configuration in tags
 * scan into composite field types (arrays, slices, structs)
 * allow for nested sub commands

GNU command line argument rules:

 * arguments are options when they begin with a hyphen -
 * multiple options can be combined: -abc is the same as -a -b -c
 * long options start with two hyphens: --abc is one option
 * option names are alphanumeric characters
 * options can have a value: -a 1 means that a has value 1
 * option values can be separated by a space, equal sign, or nothing: -a1 -
   a=1 -a 1 are all equal
 * options and non-options can be interleaved
 * the argument -- terminates all options so that all following arguments
   are treated as non-options
 * a single - argument is a non-option usually used to mean standard in or
   out streams
 * options may be specified multiple times, only the last one determines
   its value
 * options can have multiple values: -a 1 2 3 means that a is an
   array/slice/struct of three numbers of value [1,2,3]

See also github.com/tdewolff/prompt for a command-line prompter.

其他與 golang-github-tdewolff-argp-dev 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 golang-github-tdewolff-argp-dev

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 16。1 kB79。0 kB [檔案列表]