This file is indexed.

/usr/share/zproject/czmq/zargs.api is in libczmq-dev 4.1.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
<class name = "zargs" state = "draft">
    <!--
    Copyright (c) the Contributors as noted in the AUTHORS file.
    This file is part of CZMQ, the high-level C binding for 0MQ:
    http://czmq.zeromq.org.

    This Source Code Form is subject to the terms of the Mozilla Public
    License, v. 2.0. If a copy of the MPL was not distributed with this
    file, You can obtain one at http://mozilla.org/MPL/2.0/.
    -->
    Platform independent command line argument parsing helpers

    There are two kind of elements provided by this class
    foo --named-parameter --parameter with_value positional arguments -a gain-parameter
    zargs keeps poision only for arguments, parameters are to be accessed like hash.

    It DOES:
    * provide easy to use CLASS compatible API for accessing argv
    * is platform independent
    * provide getopt_long style -- argument, which delimits parameters from arguments
    * makes parameters positon independent

    It does NOT
    * change argv
    * provide a "declarative" way to define command line interface

    In future it SHALL
    * hide several formats of command line to one (-Idir, --include=dir,
      --include dir are the same from API pov)
    <constructor>
        Create a new zargs from command line arguments.

        <argument name = "argc" type = "integer"/>
        <argument name = "argv" type = "string" by_reference = "1"/>
    </constructor>

    <destructor>
        Destroy zargs instance.
    </destructor>

    <method name = "progname" >
	Return program name (argv[0])
	<return type = "string" />
    </method>

    <method name = "arguments" >
	Return number of positional arguments
        <return type = "size" />
    </method>

    <method name = "first" >
	Return first positional argument or NULL
	<return type = "string" />
    </method>

    <method name = "next" >
	Return next positional argument or NULL
	<return type = "string" />
    </method>

    <method name = "param first" >
	Return first named parameter value, or NULL if there are no named
        parameters, or value for which zargs_param_empty (arg) returns true.
        <return type = "string" />
    </method>

    <method name = "param next" >
	Return next named parameter value, or NULL if there are no named
        parameters, or value for which zargs_param_empty (arg) returns true.
        <return type = "string" />
    </method>

    <method name = "param name" >
	Return current parameter name, or NULL if there are no named
        parameters.
        <return type = "string" />
    </method>

    <method name = "param lookup">
	Return value of named parameter, NULL if no given parameter has
	been specified, or special value for wich zargs_param_empty ()
	returns true.
        <argument name = "keys" type = "string" />
        <return type="string" />
    </method>

    <method name = "param lookupx">
	Return value of named parameter(s), NULL if no given parameter has
	been specified, or special value for wich zargs_param_empty ()
	returns true.
        <argument name = "keys" type = "string" variadic="1" />
        <return type="string" />
    </method>

    <method name = "has help">
        Returns true if there are --help -h arguments
	<return type="boolean" />
    </method>

    <!-- helpers -->
    <method name = "param empty" singleton = "1">
        Returns true if parameter did not have a value
	<argument name ="arg" type = "string" />
	<return type="boolean" />
    </method>

    <method name = "print" >
        Print an instance of zargs.
    </method>
</class>