~ubuntu-branches/ubuntu/raring/heimdal/raring

« back to all changes in this revision

Viewing changes to lib/roken/getarg.3

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2011-07-21 17:40:58 UTC
  • mfrom: (1.1.12 upstream) (2.4.10 experimental)
  • Revision ID: james.westby@ubuntu.com-20110721174058-byiuowgocek307cs
Tags: 1.5~pre2+git20110720-2
Fix dependency on pthreads when building on Linux 3.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
.\" Copyright (c) 1999 - 2002 Kungliga Tekniska Högskolan
2
 
.\" (Royal Institute of Technology, Stockholm, Sweden). 
3
 
.\" All rights reserved. 
4
 
.\"
5
 
.\" Redistribution and use in source and binary forms, with or without 
6
 
.\" modification, are permitted provided that the following conditions 
7
 
.\" are met: 
8
 
.\"
9
 
.\" 1. Redistributions of source code must retain the above copyright 
10
 
.\"    notice, this list of conditions and the following disclaimer. 
11
 
.\"
12
 
.\" 2. Redistributions in binary form must reproduce the above copyright 
13
 
.\"    notice, this list of conditions and the following disclaimer in the 
14
 
.\"    documentation and/or other materials provided with the distribution. 
15
 
.\"
16
 
.\" 3. Neither the name of the Institute nor the names of its contributors 
17
 
.\"    may be used to endorse or promote products derived from this software 
18
 
.\"    without specific prior written permission. 
19
 
.\"
20
 
.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 
21
 
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
22
 
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
23
 
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 
24
 
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
25
 
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 
26
 
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
27
 
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
28
 
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 
29
 
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
30
 
.\" SUCH DAMAGE. 
31
 
.\" 
 
2
.\" (Royal Institute of Technology, Stockholm, Sweden).
 
3
.\" All rights reserved.
 
4
.\"
 
5
.\" Redistribution and use in source and binary forms, with or without
 
6
.\" modification, are permitted provided that the following conditions
 
7
.\" are met:
 
8
.\"
 
9
.\" 1. Redistributions of source code must retain the above copyright
 
10
.\"    notice, this list of conditions and the following disclaimer.
 
11
.\"
 
12
.\" 2. Redistributions in binary form must reproduce the above copyright
 
13
.\"    notice, this list of conditions and the following disclaimer in the
 
14
.\"    documentation and/or other materials provided with the distribution.
 
15
.\"
 
16
.\" 3. Neither the name of the Institute nor the names of its contributors
 
17
.\"    may be used to endorse or promote products derived from this software
 
18
.\"    without specific prior written permission.
 
19
.\"
 
20
.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
 
21
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 
22
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 
23
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
 
24
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 
25
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 
26
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 
27
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 
28
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 
29
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 
30
.\" SUCH DAMAGE.
 
31
.\"
32
32
.\" $Id$
33
33
.Dd September 24, 1999
34
34
.Dt GETARG 3
246
246
.Pp
247
247
Long option names are prefixed with -- (double dash), and the value
248
248
with a = (equal),
249
 
.Fl -foo= Ns Ar bar .
 
249
.Fl Fl foo= Ns Ar bar .
250
250
Long option flags can either be specified as they are
251
 
.Pf ( Fl -help ) ,
 
251
.Pf ( Fl Fl help ) ,
252
252
or with an (boolean parsable) option
253
 
.Pf ( Fl -help= Ns Ar yes ,
254
 
.Fl -help= Ns Ar true ,
 
253
.Pf ( Fl Fl help= Ns Ar yes ,
 
254
.Fl Fl help= Ns Ar true ,
255
255
or similar), or they can also be negated
256
 
.Pf ( Fl -no-help
 
256
.Pf ( Fl Fl no-help
257
257
is the same as
258
 
.Fl -help= Ns no ) ,
 
258
.Fl Fl help= Ns no ) ,
259
259
and if you're really confused you can do it multiple times
260
 
.Pf ( Fl -no-no-help= Ns Ar false ,
 
260
.Pf ( Fl Fl no-no-help= Ns Ar false ,
261
261
or even
262
 
.Fl -no-no-help= Ns Ar maybe ) .
 
262
.Fl Fl no-no-help= Ns Ar maybe ) .
263
263
.Sh EXAMPLE
264
264
.Bd -literal
265
265
#include <stdio.h>