getopt_long.3 (126452) | getopt_long.3 (126535) |
---|---|
1.\" $OpenBSD: getopt_long.3,v 1.10 2004/01/06 23:44:28 fgsch Exp $ 2.\" $NetBSD: getopt_long.3,v 1.14 2003/08/07 16:43:40 agc Exp $ 3.\" 4.\" Copyright (c) 1988, 1991, 1993 5.\" The Regents of the University of California. All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" SUCH DAMAGE. 30.\" 31.\" @(#)getopt.3 8.5 (Berkeley) 4/27/95 | 1.\" $OpenBSD: getopt_long.3,v 1.10 2004/01/06 23:44:28 fgsch Exp $ 2.\" $NetBSD: getopt_long.3,v 1.14 2003/08/07 16:43:40 agc Exp $ 3.\" 4.\" Copyright (c) 1988, 1991, 1993 5.\" The Regents of the University of California. All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" SUCH DAMAGE. 30.\" 31.\" @(#)getopt.3 8.5 (Berkeley) 4/27/95 |
32.\" $FreeBSD: head/lib/libc/stdlib/getopt_long.3 126452 2004-03-01 17:57:05Z ache $ | 32.\" $FreeBSD: head/lib/libc/stdlib/getopt_long.3 126535 2004-03-03 08:29:00Z ache $ |
33.\" 34.Dd April 1, 2000 35.Dt GETOPT_LONG 3 36.Os 37.Sh NAME 38.Nm getopt_long , 39.Nm getopt_long_only 40.Nd get long options from command line argument list --- 265 unchanged lines hidden (view full) --- 306.\" .Bx 307.\" ignore 308.\" .Ev POSIXLY_CORRECT 309.\" here and take 310.\" .Ql :: 311.\" to 312.\" mean the preceding option takes an optional argument. 313.\" .El | 33.\" 34.Dd April 1, 2000 35.Dt GETOPT_LONG 3 36.Os 37.Sh NAME 38.Nm getopt_long , 39.Nm getopt_long_only 40.Nd get long options from command line argument list --- 265 unchanged lines hidden (view full) --- 306.\" .Bx 307.\" ignore 308.\" .Ev POSIXLY_CORRECT 309.\" here and take 310.\" .Ql :: 311.\" to 312.\" mean the preceding option takes an optional argument. 313.\" .El |
314.It 315Return value in case of missing argument if first character 316(after 317.Ql + 318or 319.Ql - ) 320in option string is not 321.Ql \&: : 322.Bl -tag -width ".Bx" 323.It Tn GNU 324returns 325.Ql \&? 326.It Bx 327returns 328.Ql \&: 329(since 330.Bx Ns 's 331.Fn getopt 332does). 333.El | |
334.\" .It | 314.\" .It |
315.\" Return value in case of missing argument if first character 316.\" (after 317.\" .Ql + 318.\" or 319.\" .Ql - ) 320.\" in option string is not 321.\" .Ql \&: : 322.\" .Bl -tag -width ".Bx" 323.\" .It Tn GNU 324.\" returns 325.\" .Ql \&? 326.\" .It Bx 327.\" returns 328.\" .Ql \&: 329.\" (since 330.\" .Bx Ns 's 331.\" .Fn getopt 332.\" does). 333.\" .El 334.\" .It |
|
335.\" Handling of 336.\" .Ql --a 337.\" in getopt: 338.\" .Bl -tag -width ".Bx" 339.\" .It Tn GNU 340.\" parses this as option 341.\" .Ql - , 342.\" option --- 164 unchanged lines hidden --- | 335.\" Handling of 336.\" .Ql --a 337.\" in getopt: 338.\" .Bl -tag -width ".Bx" 339.\" .It Tn GNU 340.\" parses this as option 341.\" .Ql - , 342.\" option --- 164 unchanged lines hidden --- |