Lines Matching refs:opts

45 text_to_var(tOptions * opts, teTextTo which, tOptDesc * od);
48 emit_usage(tOptions * opts);
51 emit_wrapup(tOptions * opts);
54 emit_setup(tOptions * opts);
57 emit_action(tOptions * opts, tOptDesc * od);
60 emit_inaction(tOptions * opts, tOptDesc * od);
63 emit_flag(tOptions * opts);
66 emit_match_expr(char const * name, tOptDesc * cod, tOptions * opts);
69 emit_long(tOptions * opts);
117 optionParseShell(tOptions * opts) in optionParseShell() argument
139 open_out(GENSHELL_OPT_ARG(SCRIPT), opts->pzProgName); in optionParseShell()
141 emit_usage(opts); in optionParseShell()
142 emit_setup(opts); in optionParseShell()
147 switch (opts->fOptSet & (OPTPROC_LONGOPT|OPTPROC_SHORTOPT)) { in optionParseShell()
153 emit_long(opts); in optionParseShell()
154 printf(LOPT_ARG_FMT, opts->pzPROGNAME); in optionParseShell()
163 emit_long(opts); in optionParseShell()
164 printf(LOPT_ARG_FMT, opts->pzPROGNAME); in optionParseShell()
172 emit_flag(opts); in optionParseShell()
173 printf(OPT_ARG_FMT, opts->pzPROGNAME); in optionParseShell()
184 emit_long(opts); in optionParseShell()
185 printf(LOPT_ARG_FMT, opts->pzPROGNAME); in optionParseShell()
190 emit_flag(opts); in optionParseShell()
191 printf(OPT_ARG_FMT, opts->pzPROGNAME); in optionParseShell()
198 emit_wrapup(opts); in optionParseShell()
202 printf(SHOW_PROG_ENV, opts->pzPROGNAME); in optionParseShell()
210 fserr_exit(opts->pzProgName, zwriting, zstdout_name); in optionParseShell()
290 text_to_var(tOptions * opts, teTextTo which, tOptDesc * od) in text_to_var() argument
300 printf(SET_NO_TEXT_FMT, opts->pzPROGNAME, ttnames[which]); in text_to_var()
308 fserr_exit(opts->pzProgName, "pipe", zinter_proc_pipe); in text_to_var()
312 fserr_exit(opts->pzProgName, "fork", opts->pzProgName); in text_to_var()
326 (*(opts->pUsageProc))(opts, EXIT_SUCCESS); in text_to_var()
330 (*(opts->pUsageProc))(opts, EXIT_FAILURE); in text_to_var()
339 optionPrintVersion(opts, od); in text_to_var()
352 emit_var_text(opts->pzPROGNAME, ttnames[which], fdpair[0]); in text_to_var()
361 emit_usage(tOptions * opts) in emit_usage() argument
393 printf(END_PRE_FMT, opts->pzPROGNAME); in emit_usage()
401 char const * pz = opts->pzPROGNAME; in emit_usage()
410 pp = VOIDP(&(opts->pzProgPath)); in emit_usage()
412 pp = VOIDP(&(opts->pzProgName)); in emit_usage()
416 text_to_var(opts, TT_LONGUSAGE, NULL); in emit_usage()
417 text_to_var(opts, TT_USAGE, NULL); in emit_usage()
420 tOptDesc * pOptDesc = opts->pOptDesc; in emit_usage()
421 int optionCt = opts->optCt; in emit_usage()
425 text_to_var(opts, TT_VERSION, pOptDesc); in emit_usage()
437 emit_wrapup(tOptions * opts) in emit_wrapup() argument
439 tOptDesc * od = opts->pOptDesc; in emit_wrapup()
440 int opt_ct = opts->presetOptCt; in emit_wrapup()
443 printf(FINISH_LOOP, opts->pzPROGNAME); in emit_wrapup()
464 printf(fmt, opts->pzPROGNAME, od->pz_NAME, min); in emit_wrapup()
471 emit_setup(tOptions * opts) in emit_setup() argument
473 tOptDesc * od = opts->pOptDesc; in emit_setup()
474 int opt_ct = opts->presetOptCt; in emit_setup()
531 printf(fmt, opts->pzPROGNAME, od->pz_NAME, def_val); in emit_setup()
536 emit_action(tOptions * opts, tOptDesc * od) in emit_action() argument
539 printf(ECHO_N_EXIT, opts->pzPROGNAME, VER_STR); in emit_action()
542 printf(PAGE_USAGE_TEXT, opts->pzPROGNAME); in emit_action()
554 printf(ECHO_N_EXIT, opts->pzPROGNAME, LONG_USE_STR); in emit_action()
558 printf(SGL_ARG_FMT, opts->pzPROGNAME, od->pz_NAME); in emit_action()
561 printf(CHK_MAX_COUNT, opts->pzPROGNAME, in emit_action()
564 printf(MULTI_ARG_FMT, opts->pzPROGNAME, od->pz_NAME); in emit_action()
571 printf(SET_MULTI_ARG, opts->pzPROGNAME, od->pz_NAME); in emit_action()
575 printf(SET_MULTI_ARG, opts->pzPROGNAME, od->pz_NAME); in emit_action()
586 emit_inaction(tOptions * opts, tOptDesc * od) in emit_inaction() argument
592 printf(NO_SGL_ARG_FMT, opts->pzPROGNAME, in emit_inaction()
595 printf(NO_MULTI_ARG_FMT, opts->pzPROGNAME, in emit_inaction()
609 emit_flag(tOptions * opts) in emit_flag() argument
611 tOptDesc * od = opts->pOptDesc; in emit_flag()
612 int opt_ct = opts->optCt; in emit_flag()
622 emit_action(opts, od); in emit_flag()
624 printf(UNK_OPT_FMT, FLAG_STR, opts->pzPROGNAME); in emit_flag()
636 emit_match_expr(char const * name, tOptDesc * cod, tOptions * opts) in emit_match_expr() argument
646 tOptDesc * od = opts->pOptDesc; in emit_match_expr()
647 int ct = opts->optCt; in emit_match_expr()
715 emit_long(tOptions * opts) in emit_long() argument
717 tOptDesc * od = opts->pOptDesc; in emit_long()
718 int ct = opts->optCt; in emit_long()
732 emit_match_expr(od->pz_Name, od, opts); in emit_long()
733 emit_action(opts, od); in emit_long()
739 emit_match_expr(od->pz_DisableName, od, opts); in emit_long()
740 emit_inaction(opts, od); in emit_long()
744 printf(UNK_OPT_FMT, OPTION_STR, opts->pzPROGNAME); in emit_long()
866 genshelloptUsage(tOptions * opts, int exit_cd) in genshelloptUsage() argument
869 optionUsage(opts, exit_cd); in genshelloptUsage()
876 optionUsage(opts, exit_cd); in genshelloptUsage()
889 optionUsage(opts, EXIT_FAILURE); in genshelloptUsage()
894 optionUsage(opts, EXIT_SUCCESS); in genshelloptUsage()
945 fserr_exit(opts->pzProgName, zwriting, zstdout_name); in genshelloptUsage()