Home | History | Annotate | Download | only in www

Lines Matching full:optargs

238 already sorted into this.optflags, this.optargs, this.optc, and the GLOBALS()
343 get_optflags() in lib/args.c to intialize toys.optflags, toys.optargs, and
379 <p>Most commands don't use this field, instead the use optargs, optflags,
406 <li><p>char **<b>optargs</b> - Null terminated array of arguments left over
411 optargs[].<p></li>
895 results in the global structures "toys" (optflags and optargs) and "this".</p>
902 the null-terminated array toys.optargs, with the length in toys.optc. (Note
903 that toys.optargs does not contain the current command name at position zero,
908 a format reminiscent of getopt's optargs but with several important differences.
913 libc optargs() (such as the ability to describe long options in the same string
951 <li>toys.optargs[0] = "walrus"; // leftover argument</li>
952 <li>toys.optargs[1] = NULL; // end of list</li>
1006 if (toys.optargs & FLAG_x) gets optimized out via dead code elimination.
1066 <p><b>char *toys.optargs[]</b></p>
1070 to toys.optargs[], with the length of that array in toys.optc.
1075 <p>Option parsing can require a minimum or maximum number of optargs left
1080 arguments in optargs. The "--" itself is consumed.</p>
1090 with - through to optargs instead of erroring out).</li>
1092 <li><b>&lt;</b> - must be followed by a decimal digit indicating at least this many leftover arguments are needed in optargs (default 0)</li>
1102 <li><b>^</b> - stop parsing options after encountering this option, everything else goes into optargs.</li>
1146 treat "--boing value" as setting FLAG_x in toys.optargs, leaving TT.x NULL,
1147 and keeping "value" in toys.optargs[]. (This lets "ls --color" and