[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#41127: [PATCH 0/2] New (ice-9 command-line-processor).
From: |
Dale Mellor |
Subject: |
bug#41127: [PATCH 0/2] New (ice-9 command-line-processor). |
Date: |
Thu, 07 May 2020 13:24:39 +0100 |
User-agent: |
Evolution 3.30.5-1.1 |
Modelled after GNU libc's argp command-line parser, and building on
(ice-9 getopt-long), this new module allows a one-stop specification
of how the command line options should work,
(process-command-line (command-line)
application "my-app"
version "1.0"
usage "[OPTION]..."
license GPLv3
option (--option=3 -o "demonstration option"))
and then the program gets variables with names like --option which convey
the state of the command line,
(cond (--option => (lambda (o) (display "The option value is ")
(display o)
(newline)))
and as a side-effect --help, --version and --usage are dealt with
automatically!
- bug#41127: [PATCH 0/2] New (ice-9 command-line-processor).,
Dale Mellor <=