Browse Source

gnu: Add argtable.

* gnu/packages/popt.scm (argtable): New variable.
Ricardo Wurmus 6 years ago
1 changed files with 29 additions and 0 deletions
  1. +29

+ 29
- 0
gnu/packages/popt.scm View File

@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013, 2014 Ludovic Courtès <>
;;; Copyright © 2015 Ricardo Wurmus <>
;;; This file is part of GNU Guix.
@ -22,6 +23,34 @@
#:use-module (guix build-system gnu)
#:use-module (guix licenses))
(define-public argtable
(name "argtable")
(version "2.13")
(source (origin
(method url-fetch)
(uri (string-append
(string-join (string-split version #\.) "-")
(build-system gnu-build-system)
(home-page "")
(synopsis "Command line option parsing library")
"Argtable is an ANSI C library for parsing GNU style command line
options. It enables a program's command line syntax to be defined in the
source code as an array of argtable structs. The command line is then parsed
according to that specification and the resulting values are returned in those
same structs where they are accessible to the main program. Both tagged (-v,
--verbose, --foo=bar) and untagged arguments are supported, as are multiple
instances of each argument. Syntax error handling is automatic and the library
also provides the means for generating a textual description of the command
line syntax.")
(license lgpl2.0+)))
(define-public popt
(name "popt")