Assar Westerlund
67422a6b02
s/[gs]et_progname/[gs]etprogname/
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-20 01:44:56 +00:00
Assar Westerlund
946da5d4b2
(print_arg): add a case for arg_strings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9412 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-25 17:03:15 +00:00
Assar Westerlund
081ad8ccd6
add stdlib.h and string.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8565 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-06 22:15:04 +00:00
Assar Westerlund
41c126a7ce
(arg_match_short): backup optind when there's a missing argument so
...
that the error can point at the flag and not the non-existant argument
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-09 07:49:35 +00:00
Assar Westerlund
1852dc267f
(mandoc_template): also fix no- prefix in .Sh OPTIONS
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7941 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-13 21:06:43 +00:00
Assar Westerlund
60e3154876
(mandoc_template): better man-stuff for negative options
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7938 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-13 20:50:13 +00:00
Johan Danielsson
3ca5f8150f
remove advertising clause
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 16:58:55 +00:00
Assar Westerlund
6e2f0bddfe
add a new type of argument: `arg_counter'
...
re-organize the code somewhat
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7351 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-12 15:34:51 +00:00
Johan Danielsson
a8827e2cb4
change the way arg_collect works; it's still quite horrible though
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7184 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-18 17:13:43 +00:00
Assar Westerlund
8f1b20431e
(getarg): also set optind when returning error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7112 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-05 22:43:28 +00:00
Johan Danielsson
014b3527e7
add a callback type to do more complicated processing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7023 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-24 14:47:56 +00:00
Johan Danielsson
5486efe053
add floating point support
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7022 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-24 12:59:53 +00:00
Assar Westerlund
8e441f1158
strc{py,at}_truncate -> strlc{py,at}
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6983 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-16 20:06:06 +00:00
Assar Westerlund
66b3034e8e
more braces
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5226 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-22 09:45:42 +00:00
Assar Westerlund
3719f25eed
(arg_printusage): new parameter `progname'. NULL means __progname.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5125 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-18 20:25:47 +00:00
Johan Danielsson
a5f54865d4
merge strcpy_truncate branch
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5027 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-09 19:25:40 +00:00
Johan Danielsson
590817e798
(mandoc_template): Put short and long options in SYNOPSIS within the
...
same [ ] pair.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4997 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-31 01:24:01 +00:00
Johan Danielsson
052559a46f
(arg_printusage): try to keep options shorter than column width
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4990 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-29 22:14:08 +00:00
Johan Danielsson
ea1a268a98
(mandoc_template): Put short and long options in DESCRIPTION on the
...
same line.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4976 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-28 23:19:12 +00:00
Johan Danielsson
c62e897e69
(arg_match_long): make sure you only get an exact match if the strings
...
are the same length
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4972 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-28 22:04:57 +00:00
Johan Danielsson
9d2c40aa7a
Fix long form of negative flags.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4342 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-22 20:23:16 +00:00
Assar Westerlund
aa6cce306f
(print_arg): take care of impossible case.
...
(arg_match_long): initialize variables to get rid of warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4201 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-15 00:01:19 +00:00
Assar Westerlund
9b7dd54006
removed unused variable
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4089 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-04 03:37:17 +00:00
Johan Danielsson
aae2360a45
Add mandoc help back-end to getarg.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4080 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-30 13:56:51 +00:00
Johan Danielsson
96529dcd8d
Add strings option.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2821 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-08 22:40:17 +00:00
Johan Danielsson
fb5c1e4044
Add statement after `out' label.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2656 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-27 16:19:51 +00:00
Assar Westerlund
358e048a00
fix bug parsing `no'
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2634 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-25 15:36:06 +00:00
Johan Danielsson
60088b2061
Handle `-f arg' correctly.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2579 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-24 06:13:56 +00:00
Assar Westerlund
8870be78cb
clearer code
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2454 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-19 01:25:13 +00:00
Assar Westerlund
48ef709a3f
n -> number, s -> string
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2453 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-19 01:18:42 +00:00
Assar Westerlund
3daaa8484a
support a string for the argument name
...
print negative flags with `no-'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2452 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-19 01:12:42 +00:00
Assar Westerlund
daf3b9e2d5
print arguments in long usage as well.
...
extend test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2451 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-19 00:59:51 +00:00
Assar Westerlund
c1e4dfeb1a
implement =maybe
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2450 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-19 00:42:23 +00:00
Assar Westerlund
956c6cccde
accept any number of no-
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2449 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-19 00:35:55 +00:00
Assar Westerlund
ec5a6608ff
line-up help strings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2448 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-19 00:25:35 +00:00
Assar Westerlund
269dd2347c
partial matching for long options
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2447 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-19 00:15:35 +00:00
Assar Westerlund
5bb7f6f656
arg_printusage and some fixes
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2444 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-18 23:17:30 +00:00
Johan Danielsson
e0462efe8a
New option parsing code.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2435 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-18 21:58:58 +00:00