golang-github-tdewolff-argp 0.0~git20231030.fa6c548-2 source package in Ubuntu
Changelog
golang-github-tdewolff-argp (0.0~git20231030.fa6c548-2) unstable; urgency=medium * Source-only upload for migration to testing -- Anthony Fok <email address hidden> Thu, 09 Nov 2023 15:56:11 -0700
Upload details
- Uploaded by:
- Debian Go Packaging Team
- Uploaded to:
- Sid
- Original maintainer:
- Debian Go Packaging Team
- Architectures:
- all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section |
---|
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
golang-github-tdewolff-argp_0.0~git20231030.fa6c548-2.dsc | 2.4 KiB | 473d21895aa87d24714cc762dd90dee6b38e5f0b46f37a3dd0167e092b6bd864 |
golang-github-tdewolff-argp_0.0~git20231030.fa6c548.orig.tar.xz | 11.7 KiB | 5e58ef6ec5a89ece7db69e6b83704d87aff7242111ea8e388acaf0875e093bb6 |
golang-github-tdewolff-argp_0.0~git20231030.fa6c548-2.debian.tar.xz | 3.1 KiB | deaf3e71093a4a2def408b149cc0bd7167634ccdab2ec6619cb63145257b75c6 |
Available diffs
No changes file available.
Binary packages built by this source
- golang-github-tdewolff-argp-dev: 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.