Lines Matching refs:av
114 bool initOptions(int ac, char* av[]);
137 bool Options::initOptions(int ac, char* av[]) in initOptions() argument
148 m_program = av[0]; in initOptions()
151 m_program = av[0]+index+1; in initOptions()
156 if (av[i][0] == '-') in initOptions()
158 switch (av[i][1]) in initOptions()
162 if (av[i][2] == '\0') in initOptions()
164 if (i < ac - 1 && av[i+1][0] != '-') in initOptions()
167 s = av[i]; in initOptions()
170 fprintf(stderr, "%s: invalid option '%s'\n", m_program.getStr(), av[i]); in initOptions()
176 s = av[i] + 2; in initOptions()
182 if (av[i][2] == '\0') in initOptions()
184 if (i < ac - 1 && av[i+1][0] != '-') in initOptions()
187 s = av[i]; in initOptions()
190 fprintf(stderr, "%s: invalid option '%s'\n", m_program.getStr(), av[i]); in initOptions()
196 s = av[i] + 2; in initOptions()
202 if (av[i][2] != '\0') in initOptions()
204 fprintf(stderr, "%s: invalid option '%s'\n", m_program.getStr(), av[i]); in initOptions()
211 if (av[i][2] != '\0') in initOptions()
213 fprintf(stderr, "%s: invalid option '%s'\n", m_program.getStr(), av[i]); in initOptions()
222 fprintf(stderr, "%s: unknown option '%s'\n", m_program.getStr(), av[i]); in initOptions()
228 fprintf(stderr, "%s: unknown option '%s'\n", m_program.getStr(), av[i]); in initOptions()