Lines Matching refs:opts

43 text_to_var(tOptions * opts, teTextTo which, tOptDesc * od);
46 emit_usage(tOptions * opts);
49 emit_wrapup(tOptions * opts);
52 emit_setup(tOptions * opts);
55 emit_action(tOptions * opts, tOptDesc * od);
58 emit_inaction(tOptions * opts, tOptDesc * od);
61 emit_flag(tOptions * opts);
64 emit_match_expr(char const * name, tOptDesc * cod, tOptions * opts);
67 emit_long(tOptions * opts);
115 optionParseShell(tOptions * opts)
137 open_out(GENSHELL_OPT_ARG(SCRIPT), opts->pzProgName);
139 emit_usage(opts);
140 emit_setup(opts);
145 switch (opts->fOptSet & (OPTPROC_LONGOPT|OPTPROC_SHORTOPT)) {
151 emit_long(opts);
152 printf(LOPT_ARG_FMT, opts->pzPROGNAME);
161 emit_long(opts);
162 printf(LOPT_ARG_FMT, opts->pzPROGNAME);
170 emit_flag(opts);
171 printf(OPT_ARG_FMT, opts->pzPROGNAME);
182 emit_long(opts);
183 printf(LOPT_ARG_FMT, opts->pzPROGNAME);
188 emit_flag(opts);
189 printf(OPT_ARG_FMT, opts->pzPROGNAME);
196 emit_wrapup(opts);
200 printf(SHOW_PROG_ENV, opts->pzPROGNAME);
208 fserr_exit(opts->pzProgName, zwriting, zstdout_name);
283 * @param[in] opts the program options
288 text_to_var(tOptions * opts, teTextTo which, tOptDesc * od)
298 printf(SET_NO_TEXT_FMT, opts->pzPROGNAME, ttnames[which]);
306 fserr_exit(opts->pzProgName, "pipe", zinter_proc_pipe);
310 fserr_exit(opts->pzProgName, "fork", opts->pzProgName);
324 (*(opts->pUsageProc))(opts, EXIT_SUCCESS);
328 (*(opts->pUsageProc))(opts, EXIT_FAILURE);
337 optionPrintVersion(opts, od);
350 emit_var_text(opts->pzPROGNAME, ttnames[which], fdpair[0]);
359 emit_usage(tOptions * opts)
391 printf(END_PRE_FMT, opts->pzPROGNAME);
399 char const * pz = opts->pzPROGNAME;
408 pp = VOIDP(&(opts->pzProgPath));
410 pp = VOIDP(&(opts->pzProgName));
414 text_to_var(opts, TT_LONGUSAGE, NULL);
415 text_to_var(opts, TT_USAGE, NULL);
418 tOptDesc * pOptDesc = opts->pOptDesc;
419 int optionCt = opts->optCt;
423 text_to_var(opts, TT_VERSION, pOptDesc);
435 emit_wrapup(tOptions * opts)
437 tOptDesc * od = opts->pOptDesc;
438 int opt_ct = opts->presetOptCt;
441 printf(FINISH_LOOP, opts->pzPROGNAME);
462 printf(fmt, opts->pzPROGNAME, od->pz_NAME, min);
469 emit_setup(tOptions * opts)
471 tOptDesc * od = opts->pOptDesc;
472 int opt_ct = opts->presetOptCt;
529 printf(fmt, opts->pzPROGNAME, od->pz_NAME, def_val);
534 emit_action(tOptions * opts, tOptDesc * od)
537 printf(ECHO_N_EXIT, opts->pzPROGNAME, VER_STR);
540 printf(PAGE_USAGE_TEXT, opts->pzPROGNAME);
552 printf(ECHO_N_EXIT, opts->pzPROGNAME, LONG_USE_STR);
556 printf(SGL_ARG_FMT, opts->pzPROGNAME, od->pz_NAME);
559 printf(CHK_MAX_COUNT, opts->pzPROGNAME,
562 printf(MULTI_ARG_FMT, opts->pzPROGNAME, od->pz_NAME);
569 printf(SET_MULTI_ARG, opts->pzPROGNAME, od->pz_NAME);
573 printf(SET_MULTI_ARG, opts->pzPROGNAME, od->pz_NAME);
584 emit_inaction(tOptions * opts, tOptDesc * od)
590 printf(NO_SGL_ARG_FMT, opts->pzPROGNAME,
593 printf(NO_MULTI_ARG_FMT, opts->pzPROGNAME,
604 * @param[in] opts the program options
607 emit_flag(tOptions * opts)
609 tOptDesc * od = opts->pOptDesc;
610 int opt_ct = opts->optCt;
620 emit_action(opts, od);
622 printf(UNK_OPT_FMT, FLAG_STR, opts->pzPROGNAME);
631 * @param[in] opts the program options
634 emit_match_expr(char const * name, tOptDesc * cod, tOptions * opts)
644 tOptDesc * od = opts->pOptDesc;
645 int ct = opts->optCt;
651 * Omit the current option, Doc opts and compiled out opts.
710 * @param[in] opts the program options
713 emit_long(tOptions * opts)
715 tOptDesc * od = opts->pOptDesc;
716 int ct = opts->optCt;
730 emit_match_expr(od->pz_Name, od, opts);
731 emit_action(opts, od);
737 emit_match_expr(od->pz_DisableName, od, opts);
738 emit_inaction(opts, od);
742 printf(UNK_OPT_FMT, OPTION_STR, opts->pzPROGNAME);
853 * arg: + tOptions * + opts + program options descriptor +
864 genshelloptUsage(tOptions * opts, int exit_cd)
867 optionUsage(opts, exit_cd);
874 optionUsage(opts, exit_cd);
887 optionUsage(opts, EXIT_FAILURE);
892 optionUsage(opts, EXIT_SUCCESS);
943 fserr_exit(opts->pzProgName, zwriting, zstdout_name);