diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-02-28 03:32:47 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-02-28 03:32:47 +0000 |
commit | caef85892cd91cdd713562567ab14cb29689f148 (patch) | |
tree | 7668fc440814198bfa476f124ad2a31766342aa0 /doc/elgetopt.html | |
parent | 6dd30a29f70b246ffc7771d0e79277392834cb71 (diff) | |
download | execline-caef85892cd91cdd713562567ab14cb29689f148.tar.xz |
Prepare for 2.9.3.0; add elgetopt -D
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc/elgetopt.html')
-rw-r--r-- | doc/elgetopt.html | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/doc/elgetopt.html b/doc/elgetopt.html index b3a28ce..bb2563f 100644 --- a/doc/elgetopt.html +++ b/doc/elgetopt.html @@ -26,7 +26,7 @@ arguments to an execline script. <h2> Interface </h2> <pre> - elgetopt <em>optstring</em> <em>prog...</em> + elgetopt [ -D <em>default</em> ] <em>optstring</em> <em>prog...</em> </pre> <ul> @@ -44,13 +44,22 @@ string. </li> <li> If the <tt>-<em>c</em></tt> switch is recognized, <tt>elgetopt</tt> sets the <tt>ELGETOPT_<em>c</em></tt> environment variable. The value of that variable is the argument to the <tt>-<em>c</em></tt> switch if -it has one, and 1 otherwise. </li> +it has one, and <tt>1</tt> (or <em>default</em> if given) otherwise. </li> <li> After setting all recognized options, <tt>elgetopt</tt> makes new <tt>#</tt>, <tt>1</tt>, <tt>2</tt>... "positional parameters" with what remains. </li> <li> <tt>elgetopt</tt> then execs into <em>prog...</em>. </li> </ul> +<h2> Options </h2> + +<ul> + <li> <tt>-D <em>default</em></tt> : use <em>default</em> as the +value for the <tt>ELGETOPT_<em>c</em></tt> environment variable if there is +no argument to the <tt>-<em>c</em></tt> switch. Default is <tt>1</tt>. The +value is the same for all the options defined by elgetopt. </li> +</ul> + <h2> Notes </h2> <ul> |