Definition at line 60 of file getopt_long.c.
63{
68
70 {
71 char **
args = (
char **) argv;
72
74
75
76
77
79 {
83 return -1;
84 }
85
87
88
89
90
91
92
93
94
95
97 {
99 args[
i] = args[
i + 1];
101
104 else
106
108 }
109
111
113 {
114
118 }
119
121 {
122
123 size_t namelen;
125
127
130 {
133 {
135
137 {
138 if (
place[namelen] ==
'=')
140 else if (
optind < argc - 1 &&
142 {
145 }
146 else
147 {
150
153 "%s: option requires an argument -- %s\n",
155
158
162 }
163 }
164 else
165 {
167 if (
place[namelen] != 0)
168 {
169
170 }
171 }
172
174
177
179
182 else
183 {
185 return 0;
186 }
187 }
188 }
189
192 "%s: illegal option -- %s\n", argv[0],
place);
196 }
197 }
198
199
201
204 {
209 "%s: illegal option -- %c\n", argv[0],
optopt);
211 }
212
214 {
218 }
219 else
220 {
223 else if (argc <= ++
optind)
224 {
230 "%s: option requires an argument -- %c\n",
233 }
234 else
235
239 }
241}
#define fprintf(file, fmt, msg)
#define required_argument
PGDLLIMPORT char * optarg
References BADARG, BADCH, EMSG, fb(), flag(), fprintf, i, name, no_argument, optarg, opterr, optind, optopt, and required_argument.
Referenced by get_opts(), handle_args(), handle_args(), main(), main(), main(), parse_psql_options(), parseCommandLine(), and regression_main().