getopt_long.3 (126535) | getopt_long.3 (126692) |
---|---|
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 126535 2004-03-03 08:29:00Z ache $ | 32.\" $FreeBSD: head/lib/libc/stdlib/getopt_long.3 126692 2004-03-06 14:24:10Z 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 --- 225 unchanged lines hidden (view full) --- 266.\" .Ev POSIXLY_CORRECT 267.\" and returns non-options as 268.\" arguments to option '\e1'. 269.\" .It Bx 270.\" honors 271.\" .Ev POSIXLY_CORRECT 272.\" and stops at the first non-option. 273.\" .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 --- 225 unchanged lines hidden (view full) --- 266.\" .Ev POSIXLY_CORRECT 267.\" and returns non-options as 268.\" arguments to option '\e1'. 269.\" .It Bx 270.\" honors 271.\" .Ev POSIXLY_CORRECT 272.\" and stops at the first non-option. 273.\" .El |
274.It 275Handling of 276.Ql - 277within the option string (not the first character): 278.Bl -tag -width ".Bx" 279.It Tn GNU 280treats a 281.Ql - 282on the command line as a non-argument. 283.It Bx 284a 285.Ql - 286within the option string matches a 287.Ql - 288(single dash) on the command line. 289This functionality is provided for backward compatibility with 290programs, such as 291.Xr su 1 , 292that use 293.Ql - 294as an option flag. 295This practice is wrong, and should not be used in any current development. 296.El | |
297.\" .It 298.\" Handling of | 274.\" .It 275.\" Handling of |
276.\" .Ql - 277.\" within the option string (not the first character): 278.\" .Bl -tag -width ".Bx" 279.\" .It Tn GNU 280.\" treats a 281.\" .Ql - 282.\" on the command line as a non-argument. 283.\" .It Bx 284.\" a 285.\" .Ql - 286.\" within the option string matches a 287.\" .Ql - 288.\" (single dash) on the command line. 289.\" This functionality is provided for backward compatibility with 290.\" programs, such as 291.\" .Xr su 1 , 292.\" that use 293.\" .Ql - 294.\" as an option flag. 295.\" This practice is wrong, and should not be used in any current development. 296.\" .El 297.\" .It 298.\" Handling of |
|
299.\" .Ql :: 300.\" in options string in presence of 301.\" .Ev POSIXLY_CORRECT : 302.\" .Bl -tag -width ".Bx" 303.\" .It Both 304.\" .Tn GNU 305.\" and 306.\" .Bx --- 200 unchanged lines hidden --- | 299.\" .Ql :: 300.\" in options string in presence of 301.\" .Ev POSIXLY_CORRECT : 302.\" .Bl -tag -width ".Bx" 303.\" .It Both 304.\" .Tn GNU 305.\" and 306.\" .Bx --- 200 unchanged lines hidden --- |